-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
48 lines (48 loc) · 1.26 KB
/
.eslintrc.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "unused-imports", "react", "react-hooks"],
"rules": {
"no-duplicate-imports": "error",
"no-template-curly-in-string": "error",
"react/boolean-prop-naming": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-unescaped-entities": "warn",
"react-hooks/rules-of-hooks": "error",
"eqeqeq": "error",
"no-console": [
"warn",
{
"allow": ["error", "warn"]
}
],
"prefer-const": "warn",
"no-await-in-loop": "warn"
},
"overrides": [
{
"files": "*",
"rules": {
"@next/next/no-img-element": "off",
"quotes": ["warn", "single", "avoid-escape"],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
}
}
],
"ignorePatterns": ["src-tauri/*", "node_modules/*", "dist/*", "packages/*"],
"root": true
}