-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
45 lines (45 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
41
42
43
44
45
{
"extends": ["next/core-web-vitals", "prettier"],
"settings": {
"import/resolver": {
"alias": {
"map": [["@src", "./"]],
"extension": [".js"]
}
}
},
"rules": {
"complexity": [
"error",
{
"max": 10
}
],
"import/no-unresolved": "warn",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"jsx-a11y/click-events-have-key-events": "error",
"jsx-a11y/interactive-supports-focus": "error",
"jsx-a11y/label-has-associated-control": [
"error",
{
"assert": "either"
}
],
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-plusplus": "warn",
"no-undefined": "error",
"no-unused-vars": "error",
"react/button-has-type": "error",
"react/destructuring-assignment": "error",
"react/jsx-sort-default-props": "error",
"react/jsx-sort-props": "error",
"react/prop-types": ["error", { "ignore": ["Component", "pageProps"] }],
"react/require-default-props": "error"
}
}