-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.eslintrc
52 lines (52 loc) · 1.09 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
42
43
44
45
46
47
48
49
50
51
52
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
"prettier/babel",
"prettier/react",
"prettier/unicorn"
],
"env": {
"browser": true,
"es6": true
},
"plugins": [
// "react",
"react-hooks",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2019,
"impliedStrict": true,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/control-has-associated-label": 0,
"react/prop-types": [2, { "ignore": ["forwardRef"] }],
"react/jsx-props-no-spreading": 0,
"react/forbid-prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"bracketSpacing": true,
"endOfLine": "lf"
},
{
"usePrettierrc": true
}
],
"unicorn/consistent-function-scoping": 0,
"unicorn/prevent-abbreviations": 0,
}
}