-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc-js.js
128 lines (128 loc) · 4.22 KB
/
.eslintrc-js.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
module.exports = {
"env": {
"mocha": true,
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script"
},
"plugins": [],
"globals": {},
"extends": [
"eslint:recommended"
],
"rules": {
"no-await-in-loop": "off",
"no-template-curly-in-string": "warn",
"require-atomic-updates": "error",
"array-callback-return": "off",
"block-scoped-var": "error",
"complexity": ["warn", 8],
"dot-notation": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "always"],
"guard-for-in": "error",
"max-classes-per-file": ["error", 6],
"no-alert": "error",
"no-caller": "error",
"no-empty-function": "warn",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-floating-decimal": "warn",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-multi-spaces": "warn",
"no-multi-str": "error",
"no-new": "warn",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "warn",
"no-script-url": "error",
"no-self-compare": "warn",
"no-sequences": "error",
"no-throw-literal": "warn",
"no-unused-expressions": "warn",
"no-useless-call": "error",
"no-useless-concat": "warn",
"no-useless-return": "warn",
"no-void": "error",
"no-with": "error",
"prefer-promise-reject-errors": "off",
"yoda": "warn",
"strict": ["error", "global"],
"no-shadow": "warn",
"no-use-before-define": "warn",
"no-new-require": "error",
"array-bracket-spacing": ["warn", "never"],
"block-spacing": "warn",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["warn", "never"],
"comma-spacing": "warn",
"comma-style": ["warn", "last"],
"computed-property-spacing": ["warn", "never"],
"func-call-spacing": ["warn", "never"],
"func-style": ["error", "declaration"],
"function-paren-newline": ["error", "never"],
"implicit-arrow-linebreak": ["error", "beside"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["error", {
"before": true
}],
"lines-between-class-members": ["error", "always"],
"max-depth": ["error", 6],
"max-len": ["warn", 180],
"max-lines": ["error", 400],
"max-nested-callbacks": ["error", 4],
"max-params": ["error", 4],
"new-cap": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-continue": "error",
"no-lonely-if": "warn",
"no-mixed-operators": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": "warn",
"no-nested-ternary": "warn",
"no-new-object": "error",
"no-trailing-spaces": "warn",
"no-underscore-dangle": ["off", {
"allowAfterThis": true,
"allowAfterSuper": true
}],
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "error",
"space-before-blocks": "warn",
"object-curly-spacing": ["warn", "never"],
"object-property-newline": "warn",
"operator-linebreak": ["error", "after"],
"padded-blocks": ["error", "never"],
"semi-spacing": "warn",
"semi": ["error", "always"],
"space-before-function-paren": ["warn", "never"],
"switch-colon-spacing": "error",
"arrow-spacing": "error",
"prefer-template": "error",
"prefer-arrow-callback": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "warn",
"space-infix-ops": "warn",
"no-var": "error",
"prefer-const": "warn"
}
}