-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
38 lines (37 loc) · 1008 Bytes
/
.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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"react-app/jest",
"airbnb",
"plugin:prettier/recommended",
"plugin:react/jsx-runtime"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"no-unused-vars": "warn",
"no-use-before-define": ["error", { "functions": false, "variables": false }],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"prettier/prettier":[
"error",
{
"singleQuote":true
}
],
"jsx-a11y/label-has-associated-control": ["error", { "required": { "some": ["nesting", "id"] } }],
"max-classes-per-file": "off",
"no-console":["warn", { "allow": [ "warn", "error"] }]
}
}