-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
51 lines (51 loc) · 1.34 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"react/function-component-definition": [2, { "namedComponents": ["arrow-function", "function-declaration"] }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"react/jsx-one-expression-per-line": "off",
"arrow-body-style": "off",
"object-curly-newline": "off",
"linebreak-style": 0,
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/button-has-type": "off",
"react/jsx-wrap-multilines": "off",
"no-console": "off",
"jsx-a11y/label-has-associated-control": [
2,
{
"labelAttributes": ["htmlFor"]
}
],
"max-len": ["error", { "code": 300, "ignoreRegExpLiterals": true }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"import/extensions": ["off"]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
}
}
}