-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 loc) · 1.16 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
53
{
"extends": [
"airbnb",
"prettier",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"prettier/react" // THIS OVERRIDES SPECIFIC REACT RULES THAT CONFLICT WITH PRETTIER
],
"env": {
"browser": true
},
"parser": "babel-eslint",
"plugins": ["react", "prettier"],
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"rules": {
"linebreak-style": ["off"],
"max-len": [
"off",
{
"code": 120
}
],
"import/no-extraneous-dependencies": "off",
"jsx-a11y/label-has-for": [
1,
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-a11y/label-has-associated-control": "off",
"react/forbid-prop-types": "off",
"react/prop-types": [
2,
{
"ignore": ["children"]
}
],
"react/sort-comp": "warn",
// mark some rules as warning for now
"react/jsx-props-no-spreading": "warn",
"react/static-property-placement": "warn",
"react/state-in-constructor": "warn",
"jsx-a11y/control-has-associated-label": "warn",
// add prettier rules
"prettier/prettier": "error"
}
}