-
Notifications
You must be signed in to change notification settings - Fork 84
/
.eslintrc.js
77 lines (77 loc) · 2.69 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"no-null",
"import"
],
"rules": {
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"no-console": "off",
"object-curly-spacing": [ "error", "always" ],
"computed-property-spacing": [ "error", "never" ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
"prefer-const": [ "error" ],
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"no-unreachable": [ "error" ],
"curly": [ "error", "multi-or-nest" ],
"no-alert": [ "error" ],
"no-else-return": [ "error" ],
"no-extra-bind": [ "error" ],
"camelcase": [ "error" ],
"lines-between-class-members": [ "error" ],
"no-multiple-empty-lines": [ "error", { "max": 1 } ],
"no-tabs": [ "error" ],
"prefer-arrow-callback": [ "error" ],
"prefer-template": [ "error" ],
"space-before-blocks": [ "error", "always" ],
"no-null/no-null": [ "error" ],
"space-infix-ops": [ "error" ],
"no-multi-spaces": [ "error" ],
"block-spacing": [ "error" ],
"no-var": [ "error" ],
"no-new-object": [ "error" ],
"object-shorthand": [ "error" ],
"quote-props": [ "error", "as-needed" ],
"no-array-constructor": [ "error" ],
"array-callback-return": [ "error" ],
"prefer-destructuring": [ "error", { "array": false } ],
"func-style": [ "error", "expression" ],
"no-param-reassign": [ "error" ],
"arrow-spacing": [ "error" ],
"no-useless-constructor": [ "error" ],
"no-duplicate-imports": [ "error" ],
"import/first": [ "error" ],
"import/prefer-default-export": [ "error" ],
"dot-notation": [ "error" ],
"one-var": [ "error", "never" ],
"no-multi-assign": [ "error" ],
"no-mixed-operators": [ "error" ],
"no-else-return": [ "error" ],
"padded-blocks": [ "error", "never" ],
"comma-spacing": [ "error" ],
"func-call-spacing": [ "error" ],
"no-trailing-spaces": [ "error" ],
"no-multiple-empty-lines": [ "error" ],
"no-new-wrappers": [ "error" ],
"new-cap": [ "error", { "properties": false } ]
},
"globals": {
"EXTENSION_ID": false,
"chrome": false,
"ENVIRONMENT": false
}
};