-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
47 lines (47 loc) · 1.23 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", "next"],
"plugins": ["import", "jsx-a11y", "react-hooks", "react"],
"rules": {
"import/no-extraneous-dependencies": "error",
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/accessible-emoji": "warn",
"no-console": ["error", { "allow": ["warn", "error"] }],
"consistent-return": "error",
"import/order": [
"error",
{ "groups": ["builtin", "external", "internal", "parent", "sibling", "index"], "newlines-between": "always" }
],
"react/jsx-key": "warn",
"react/no-array-index-key": "warn",
"react/self-closing-comp": "warn",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "error",
"import/named": "error",
"react/jsx-sort-props": [
"error",
{
"ignoreCase": true
}
]
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
}
}