Skip to content

Commit

Permalink
updated eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
behzodfaiziev committed Dec 1, 2024
1 parent 85db79d commit 31f7ba9
Show file tree
Hide file tree
Showing 9 changed files with 1,892 additions and 236 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ const product = await networkManager.request<ProductModel>({
url: "/api/product/1",
isTokenRefreshRequired: true, // Ensure token refresh is triggered before the request
});

```

### Key Points:
Expand Down
51 changes: 0 additions & 51 deletions eslint.config.js

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import globals from "globals";
import ts from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import react from "eslint-plugin-react";

/** @type {import('eslint').Linter.Config} */
export default {
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
languageOptions: {
globals: globals.browser,
parser: tsParser,
},
plugins: {
"@typescript-eslint": ts,
react,
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
},
settings: {
react: {
version: "detect",
},
},
};
Loading

0 comments on commit 31f7ba9

Please sign in to comment.