-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
47 lines (40 loc) · 1.04 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
{
"extends": ["next/core-web-vitals", "prettier"],
"settings": {
"next": {
"rootDir": "packages/*/"
}
},
"rules": {
"camelcase": "off",
// "max-len": ["warn", { "code": 80 }]
"no-use-before-define": "off",
"no-shadow": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-unused-vars": "warn",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-restricted-syntax": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
],
"import/no-extraneous-dependencies": "warn",
"import/prefer-default-export": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"react/prop-types": "off",
"react/require-default-props": "off",
"react/jsx-key": ["error", { "checkFragmentShorthand": false }],
"jsx-a11y/alt-text": "off"
}
}