-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
42 lines (42 loc) · 1.03 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"globals": {
"__CONFIG__": true,
"__ENV__": true
},
"extends": ["airbnb"],
"plugins": ["flowtype", "react"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
// Enabled object spread
"experimentalObjectRestSpread": true
}
},
// Rule changes from Airbnb's eslint config
"rules": {
"import/no-unresolved": 0,
"new-cap": 0,
"semi": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"arrow-body-style": 0,
"no-console": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/href-no-hash": 0,
"import/prefer-default-export": 0,
"react/prop-types": 0,
"react/jsx-filename-extension": 0,
"comma-dangle": [2, "always-multiline"],
"arrow-parens": ["warn", "always"],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to", "hrefLeft", "hrefRight" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
}
}