-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
41 lines (41 loc) · 1.17 KB
/
.eslintrc
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
{
"extends": ["airbnb", "airbnb/hooks", "plugin:react-hooks/recommended"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prop-types": 2,
"react/button-has-type": 0,
"import/prefer-default-export": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"no-control-regex": 0,
"jsx-a11y/label-has-associated-control": [ 2, {
"controlComponents": ["Inputs.FileInput"]
}],
"no-underscore-dangle": 0,
"react/jsx-props-no-spreading": 0,
"camelcase": 0,
"no-restricted-syntax": 0,
"no-await-in-loop": 0,
"no-console": "warn",
"max-len": ["error", 120],
"no-alert": 0,
"radix": ["error", "as-needed"],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
},
"env": {
"browser": true,
"jest": true
},
"parser": "@babel/eslint-parser"
}