-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
40 lines (40 loc) · 1.08 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
{
"extends": [
"next/core-web-vitals",
"plugin:no-switch-statements/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"react",
"simple-import-sort",
"@typescript-eslint",
"no-switch-statements",
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@next/next/no-img-element": "off",
"react/self-closing-comp": ["error", { "component": true, "html": true }],
"no-switch-statements/no-switch": "error",
"object-shorthand": ["error", "always"],
"eqeqeq": ["error", "always"],
"id-length": [
"error",
{ "exceptions": ["x", "y", "a", "b", "_"], "min": 2 }
],
"spaced-comment": ["error", "always"],
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"jsx-a11y/anchor-is-valid": "error",
"no-nested-ternary": "error"
}
}