/
.eslintrc.json
60 lines (53 loc) · 1.57 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
49
50
51
52
53
54
55
56
57
58
59
60
{
"extends": [
"airbnb",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"plugins": ["prettier", "jest"],
"env": {
"jest/globals": true
},
"rules": {
"indent": [1, 4],
"react/jsx-indent": [1, 4],
"no-unused-vars": "off",
"no-nested-ternary": "off",
"no-unused-expressions": "off",
"react/jsx-indent-props": ["error", 4],
"react/prop-types": 0,
"jsx-a11y/anchor-is-valid": 1,
"jsx-a11y/click-events-have-key-events": 1,
"react/require-default-props": "off",
"import/prefer-default-export": "off",
"import/no-unresolved" : "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-shadow": "off",
"react/jsx-props-no-spreading": 1,
"import/extensions": [
"error",
"never",
{
"svg": "always",
"css": "always",
"json": "always",
"png": "always",
"jpg": "always",
"jpeg": "always"
}
],
"react/jsx-filename-extension": [
"warn",
{ "allow": "as-needed", "extensions": [".tsx"] }
],
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-fragments": ["error", "element"]
}
}