-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
43 lines (43 loc) · 1.09 KB
/
.eslintrc
File metadata and controls
43 lines (43 loc) · 1.09 KB
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
{
"env": {
"browser": true,
"es2021": true,
"cypress/globals": true
},
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "cypress", "react-hooks"],
"rules": {
"linebreak-style": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"import/no-unresolved": "off",
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/label-has-associated-control": [
"error",
{ "assert": "either", "depth": 3 }
],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"jsx-a11y/media-has-caption": "off",
"radix": ["error", "as-needed"],
"no-console": "off",
"max-len": [
"error",
{
"code": 100,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
}
}