-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
41 lines (40 loc) · 895 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
40
41
{
"plugins": [
"babel"
],
"parser": "babel-eslint",
"rules": {
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"jsx-quotes": ["error", "prefer-double"],
"no-var": "error",
"prefer-const": "warn",
"babel/no-invalid-this": "warn",
"babel/semi": ["error", "never"],
"react/prop-types": "warn",
"react/no-unused-state": "warn",
"react/no-access-state-in-setstate": "warn",
"object-curly-spacing": "off"
},
"overrides": [
{
"files": [ "*.test.js", "*.stories.js" ],
"rules": {
"react/prop-types": "off"
}
}
],
"extends": ["standard", "standard-react"],
"env": {
"browser": true,
"jest": true,
"jasmine": true
},
"globals": {
"mapboxgl": true
}
}