-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (32 loc) · 1.13 KB
/
Copy patheslint.config.js
File metadata and controls
33 lines (32 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import prettierConfig from "eslint-config-prettier";
import reactHooksPlugin from "eslint-plugin-react-hooks";
import reactRefreshPlugin from "eslint-plugin-react-refresh";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import unusedImports from "eslint-plugin-unused-imports";
import eslint from "typescript-eslint";
export default eslint.config(
{ ignores: ["build"] },
{
extends: eslint.configs.recommended,
files: ["**/*.{ts,tsx}"],
plugins: {
"react-hooks": reactHooksPlugin,
"react-refresh": reactRefreshPlugin,
"unused-imports": unusedImports,
"simple-import-sort": simpleImportSort,
},
rules: {
...reactHooksPlugin.configs.recommended.rules,
"react-hooks/exhaustive-deps": "error",
"react/react-in-jsx-scope": "off",
"no-console": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/no-explicit-any": "off",
},
},
prettierConfig
);