UNPKG

8.94 kBJSONView Raw
1{
2 "env": {
3 "es6": true,
4 "node": true
5 },
6 "extends": "eslint:recommended",
7 "rules": {
8 "accessor-pairs": "error",
9 "array-bracket-newline": "off",
10 "array-bracket-spacing": [
11 "error",
12 "never"
13 ],
14 "array-callback-return": "off",
15 "array-element-newline": "off",
16 "arrow-body-style": "error",
17 "arrow-parens": [
18 "error",
19 "always"
20 ],
21 "arrow-spacing": [
22 "error",
23 {
24 "after": true,
25 "before": true
26 }
27 ],
28 "block-scoped-var": "error",
29 "brace-style": [
30 "error",
31 "1tbs",
32 {
33 "allowSingleLine": true
34 }
35 ],
36 "callback-return": "error",
37 "camelcase": [
38 "error",
39 {
40 "properties": "never"
41 }
42 ],
43 "capitalized-comments": "off",
44 "class-methods-use-this": "off",
45 "comma-dangle": "error",
46 "comma-spacing": "error",
47 "comma-style": [
48 "error",
49 "last"
50 ],
51 "complexity": "off",
52 "computed-property-spacing": [
53 "error",
54 "never"
55 ],
56 "consistent-return": "off",
57 "consistent-this": "off",
58 "curly": "error",
59 "default-case": "error",
60 "dot-location": [
61 "error",
62 "property"
63 ],
64 "dot-notation": "error",
65 "eol-last": "error",
66 "eqeqeq": "error",
67 "for-direction": "error",
68 "func-call-spacing": "error",
69 "func-name-matching": "off",
70 "func-names": "off",
71 "func-style": "off",
72 "function-paren-newline": "off",
73 "generator-star-spacing": "error",
74 "getter-return": "error",
75 "global-require": "off",
76 "guard-for-in": "error",
77 "handle-callback-err": "error",
78 "id-blacklist": "error",
79 "id-length": "off",
80 "id-match": "error",
81 "indent": [
82 "error",
83 4,
84 {
85 "SwitchCase": 1
86 }
87 ],
88 "indent-legacy": "off",
89 "init-declarations": "off",
90 "jsx-quotes": "error",
91 "key-spacing": "error",
92 "keyword-spacing": "error",
93 "line-comment-position": "off",
94 "linebreak-style": [
95 "error",
96 "unix"
97 ],
98 "lines-around-comment": "off",
99 "lines-around-directive": "off",
100 "lines-between-class-members": [
101 "error",
102 "always"
103 ],
104 "max-depth": "error",
105 "max-len": "off",
106 "max-lines": "off",
107 "max-nested-callbacks": "error",
108 "max-params": "off",
109 "max-statements": "off",
110 "max-statements-per-line": "off",
111 "multiline-comment-style": "off",
112 "multiline-ternary": "off",
113 "new-parens": "error",
114 "newline-after-var": "off",
115 "newline-before-return": "off",
116 "newline-per-chained-call": "off",
117 "no-alert": "error",
118 "no-array-constructor": "error",
119 "no-await-in-loop": "error",
120 "no-bitwise": "off",
121 "no-buffer-constructor": "off",
122 "no-caller": "error",
123 "no-catch-shadow": "error",
124 "no-confusing-arrow": "error",
125 "no-continue": "error",
126 "no-div-regex": "off",
127 "no-duplicate-imports": "error",
128 "no-else-return": "off",
129 "no-empty-function": "off",
130 "no-eq-null": "error",
131 "no-eval": "error",
132 "no-extend-native": "error",
133 "no-extra-bind": "error",
134 "no-extra-label": "error",
135 "no-extra-parens": "off",
136 "no-floating-decimal": "error",
137 "no-implicit-globals": "error",
138 "no-implied-eval": "error",
139 "no-inline-comments": "off",
140 "no-inner-declarations": [
141 "error",
142 "functions"
143 ],
144 "no-invalid-this": "error",
145 "no-iterator": "error",
146 "no-label-var": "error",
147 "no-labels": "error",
148 "no-lone-blocks": "error",
149 "no-lonely-if": "off",
150 "no-loop-func": "error",
151 "no-magic-numbers": "off",
152 "no-mixed-operators": "off",
153 "no-mixed-requires": "off",
154 "no-multi-assign": "off",
155 "no-multi-spaces": "off",
156 "no-multi-str": "error",
157 "no-multiple-empty-lines": ["error", {"max": 1}],
158 "no-native-reassign": "error",
159 "no-negated-condition": "off",
160 "no-negated-in-lhs": "error",
161 "no-nested-ternary": "off",
162 "no-new": "error",
163 "no-new-func": "error",
164 "no-new-object": "error",
165 "no-new-require": "error",
166 "no-new-wrappers": "error",
167 "no-octal-escape": "error",
168 "no-param-reassign": "off",
169 "no-path-concat": "off",
170 "no-plusplus": "error",
171 "no-process-env": "off",
172 "no-process-exit": "off",
173 "no-proto": "error",
174 "no-prototype-builtins": "off",
175 "no-restricted-globals": "error",
176 "no-restricted-imports": "error",
177 "no-restricted-modules": "error",
178 "no-restricted-properties": "error",
179 "no-restricted-syntax": "error",
180 "no-return-assign": "error",
181 "no-return-await": "error",
182 "no-script-url": "error",
183 "no-self-compare": "error",
184 "no-sequences": "error",
185 "no-shadow": "off",
186 "no-shadow-restricted-names": "error",
187 "no-spaced-func": "error",
188 "no-sync": "off",
189 "no-tabs": "error",
190 "no-template-curly-in-string": "error",
191 "no-ternary": "off",
192 "no-throw-literal": "error",
193 "no-trailing-spaces": "error",
194 "no-undef-init": "error",
195 "no-undefined": "off",
196 "no-underscore-dangle": "off",
197 "no-unmodified-loop-condition": "error",
198 "no-unneeded-ternary": "off",
199 "no-use-before-define": "off",
200 "no-useless-call": "error",
201 "no-useless-computed-key": "error",
202 "no-useless-concat": "off",
203 "no-useless-constructor": "error",
204 "no-useless-escape": "off",
205 "no-useless-rename": "error",
206 "no-useless-return": "error",
207 "no-var": "off",
208 "no-void": "error",
209 "no-warning-comments": "off",
210 "no-whitespace-before-property": "error",
211 "no-with": "error",
212 "nonblock-statement-body-position": "error",
213 "object-curly-newline": [
214 "error",
215 {
216 "consistent": true
217 }
218 ],
219 "object-curly-spacing": [
220 "error",
221 "never"
222 ],
223 "object-property-newline": [
224 "error",
225 {
226 "allowMultiplePropertiesPerLine": true
227 }
228 ],
229 "object-shorthand": "off",
230 "one-var": "off",
231 "one-var-declaration-per-line": "off",
232 "operator-assignment": "off",
233 "operator-linebreak": "off",
234 "padded-blocks": [
235 "error",
236 "never"
237 ],
238 "padding-line-between-statements": "error",
239 "prefer-arrow-callback": "off",
240 "prefer-const": "off",
241 "prefer-destructuring": "off",
242 "prefer-numeric-literals": "error",
243 "prefer-promise-reject-errors": "off",
244 "prefer-reflect": "off",
245 "prefer-rest-params": "off",
246 "prefer-spread": "off",
247 "prefer-template": "off",
248 "quote-props": [
249 "error",
250 "as-needed"
251 ],
252 "quotes": ["error", "single"],
253 "radix": "off",
254 "require-await": "error",
255 "require-jsdoc": "off",
256 "rest-spread-spacing": "error",
257 "semi": ["error", "always"],
258 "semi-spacing": "error",
259 "semi-style": [
260 "error",
261 "last"
262 ],
263 "sort-imports": "error",
264 "sort-keys": "off",
265 "sort-vars": "off",
266 "space-before-blocks": "error",
267 "space-before-function-paren": [
268 "error",
269 {
270 "anonymous": "always",
271 "named": "never"
272 }
273 ],
274 "space-in-parens": [
275 "error",
276 "never"
277 ],
278 "space-infix-ops": "error",
279 "space-unary-ops": "error",
280 "spaced-comment": "error",
281 "strict": "off",
282 "switch-colon-spacing": "error",
283 "symbol-description": "error",
284 "template-curly-spacing": [
285 "error",
286 "never"
287 ],
288 "template-tag-spacing": "error",
289 "unicode-bom": [
290 "error",
291 "never"
292 ],
293 "valid-jsdoc": "off",
294 "vars-on-top": "off",
295 "wrap-iife": "off",
296 "wrap-regex": "off",
297 "yield-star-spacing": "error",
298 "yoda": "error"
299 }
300}