-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.02 KB
/
.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
38
39
40
41
42
43
44
45
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react",
"jsx-a11y",
"import",
"prettier"
],
"rules": {
"arrow-body-style": "warn",
"import/no-extraneous-dependencies": "warn",
"prettier/prettier": "error",
"jsx-a11y/anchor-is-valid": 1,
"jsx-a11y/aria-props": 2,
"jsx-a11y/heading-has-content": 2,
"jsx-a11y/label-has-for": [
1, {
"components": [ "Label" ],
"required": {
"some": [ "nesting", "id" ]
},
"allowChildren": false
}
],
"jsx-a11y/mouse-events-have-key-events": 2,
"jsx-a11y/role-has-required-aria-props": 2,
"jsx-a11y/role-supports-aria-props": 2,
"no-else-return": "off",
"no-param-reassign": ["error", {"props": false}],
"react/jsx-filename-extension": 0,
"react/no-multi-comp": 1,
"react/sort-comp": [1, {
"order": [
"everything-else",
"render"
]
}]
}
}