-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (49 loc) · 1.41 KB
/
.eslintrc.js
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
46
47
48
49
module.exports = {
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"plugins": [
"react"
],
"rules": {
"strict": "warn",
"no-undef": "warn",
//"semi": [
// "error",
// "always"
//],
"no-console": "off",
"arrow-parens": ["warn", "always"],
//"arrow-body-style": ["warn", "always"],
"arrow-spacing": "warn",
"generator-star-spacing": "warn",
//"no-confusing-arrow": "warn",
"no-duplicate-imports": "warn",
"no-useless-computed-key": "warn",
"no-useless-constructor": "warn",
"no-useless-rename": "warn",
"no-var": "warn",
"object-shorthand": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"rest-spread-spacing": "warn",
"template-curly-spacing": "warn",
"yield-star-spacing": "warn",
"react/prop-types": [1, { ignore: ["dispatch"] }]
},
// An environment defines global variables that are predefined.
"env": {
"browser": true,
"node": true,
"es6": true
}
}