-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
39 lines (39 loc) · 888 Bytes
/
.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
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": [
"airbnb"
],
"rules": {
"import/named": "error",
"react/jsx-filename-extension": "off",
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to", "hrefLeft", "hrefRight" ],
"aspects": [ "noHref" ]
}],
"jsx-a11y/label-has-for": [ "error", {
"components": [ "Label" ],
"required": "id",
"allowChildren": false
}],
"react/destructuring-assignment": "off",
"react/jsx-props-no-spreading": "off",
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"import/no-cycle": "off"
}
}