-
Notifications
You must be signed in to change notification settings - Fork 43
/
.eslintrc.json
45 lines (45 loc) · 1.05 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
{
"env": {
"browser": true,
"node": true,
"es6": true,
"webextensions": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react",
"promise"
],
"rules": {
"constructor-super": "warn",
"eqeqeq": "error",
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"no-var": "error",
"prefer-const": "error",
"quotes": ["error", "single", {"avoidEscape": true}],
"semi": ["error", "always"],
"valid-typeof": "warn",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"promise/avoid-new": "warn",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error"
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
}
}