UNPKG

6.97 kBJSONView Raw
1{
2 "parserOptions": {
3 "ecmaVersion": 8,
4 "ecmaFeatures": {}
5 },
6 "rules": {
7 "accessor-pairs": 2,
8 "array-bracket-spacing": 2,
9 "array-callback-return": 2,
10 "arrow-body-style": 2,
11 "arrow-parens": 2,
12 "block-scoped-var": 2,
13 "brace-style": 2,
14 "callback-return": 2,
15 "capitalized-comments": [2, "always", {"ignoreConsecutiveComments": true}],
16 "class-methods-use-this": [2, {"exceptMethods": ["serve", "uploader", "read", "sanitize"]}],
17 "comma-dangle": 2,
18 "comma-spacing": 2,
19 "comma-style": 2,
20 "complexity": 2,
21 "computed-property-spacing": 2,
22 "consistent-return": 2,
23 "consistent-this": 2,
24 "constructor-super": 2,
25 "curly": 2,
26 "default-case": 2,
27 "dot-location": 2,
28 "dot-notation": 2,
29 "eol-last": 2,
30 "eqeqeq": 2,
31 "for-direction": 2,
32 "func-call-spacing": 2,
33 "func-name-matching": 2,
34 "func-names": 2,
35 "func-style": 2,
36 "generator-star-spacing": 2,
37 "getter-return": 2,
38 "global-require": 0,
39 "guard-for-in": 2,
40 "handle-callback-err": 2,
41 "id-blacklist": 2,
42 "id-length": 0,
43 "id-match": 2,
44 "indent-legacy": 2,
45 "indent": 2,
46 "init-declarations": 2,
47 "jsx-quotes": 2,
48 "key-spacing": 2,
49 "keyword-spacing": 2,
50 "max-depth": 2,
51 "max-lines": 2,
52 "max-nested-callbacks": 2,
53 "max-params": 2,
54 "max-statements": [1, 15],
55 "new-cap": 2,
56 "new-parens": 2,
57 "no-alert": 2,
58 "no-array-constructor": 2,
59 "no-await-in-loop": 2,
60 "no-bitwise": 2,
61 "no-buffer-constructor": 2,
62 "no-caller": 2,
63 "no-case-declarations": 2,
64 "no-catch-shadow": 2,
65 "no-class-assign": 2,
66 "no-compare-neg-zero": 2,
67 "no-cond-assign": 2,
68 "no-confusing-arrow": 2,
69 "no-console": [2, {"allow": ["warn", "error"]}],
70 "no-const-assign": 2,
71 "no-constant-condition": 2,
72 "no-control-regex": 2,
73 "no-debugger": 2,
74 "no-delete-var": 2,
75 "no-div-regex": 2,
76 "no-dupe-args": 2,
77 "no-dupe-class-members": 2,
78 "no-dupe-keys": 2,
79 "no-duplicate-case": 2,
80 "no-duplicate-imports": 2,
81 "no-else-return": 2,
82 "no-empty-character-class": 2,
83 "no-empty-function": 2,
84 "no-empty-pattern": 2,
85 "no-empty": 2,
86 "no-eq-null": 2,
87 "no-eval": 2,
88 "no-ex-assign": 2,
89 "no-extend-native": 2,
90 "no-extra-bind": 2,
91 "no-extra-boolean-cast": 2,
92 "no-extra-label": 2,
93 "no-extra-parens": 2,
94 "no-extra-semi": 2,
95 "no-fallthrough": 2,
96 "no-floating-decimal": 2,
97 "no-func-assign": 2,
98 "no-global-assign": 2,
99 "no-implicit-coercion": 2,
100 "no-implicit-globals": 2,
101 "no-implied-eval": 2,
102 "no-inner-declarations": 2,
103 "no-invalid-regexp": 2,
104 "no-invalid-this": 2,
105 "no-irregular-whitespace": 2,
106 "no-iterator": 2,
107 "no-label-var": 2,
108 "no-labels": 2,
109 "no-lone-blocks": 2,
110 "no-lonely-if": 2,
111 "no-loop-func": 2,
112 "no-magic-numbers": 0,
113 "no-mixed-operators": 2,
114 "no-mixed-spaces-and-tabs": 2,
115 "no-multi-assign": 2,
116 "no-multi-spaces": 2,
117 "no-multi-str": 2,
118 "no-native-reassign": 2,
119 "no-nested-ternary": 2,
120 "no-new-func": 2,
121 "no-new-object": 2,
122 "no-new-require": 2,
123 "no-new-symbol": 2,
124 "no-new-wrappers": 2,
125 "no-new": 2,
126 "no-obj-calls": 2,
127 "no-octal-escape": 2,
128 "no-octal": 2,
129 "no-param-reassign": 2,
130 "no-path-concat": 2,
131 "no-plusplus": 2,
132 "no-process-env": 2,
133 "no-process-exit": 2,
134 "no-proto": 2,
135 "no-prototype-builtins": 2,
136 "no-redeclare": 2,
137 "no-regex-spaces": 2,
138 "no-restricted-globals": 2,
139 "no-restricted-imports": 2,
140 "no-restricted-modules": 2,
141 "no-restricted-properties": 2,
142 "no-restricted-syntax": 2,
143 "no-return-assign": 2,
144 "no-return-await": 2,
145 "no-script-url": 2,
146 "no-self-assign": 2,
147 "no-self-compare": 2,
148 "no-sequences": 2,
149 "no-shadow-restricted-names": 2,
150 "no-shadow": 2,
151 "no-sparse-arrays": 2,
152 "no-sync": 2,
153 "no-tabs": 2,
154 "no-template-curly-in-string": 2,
155 "no-ternary": 2,
156 "no-this-before-super": 2,
157 "no-throw-literal": 2,
158 "no-trailing-spaces": 2,
159 "no-undef-init": 2,
160 "no-undef": 2,
161 "no-undefined": 2,
162 "no-underscore-dangle": 2,
163 "no-unmodified-loop-condition": 2,
164 "no-unneeded-ternary": 2,
165 "no-unreachable": 2,
166 "no-unsafe-finally": 2,
167 "no-unsafe-negation": 2,
168 "no-unused-expressions": 2,
169 "no-unused-labels": 2,
170 "no-unused-vars": 2,
171 "no-use-before-define": 2,
172 "no-useless-call": 2,
173 "no-useless-computed-key": 2,
174 "no-useless-concat": 2,
175 "no-useless-constructor": 2,
176 "no-useless-escape": 2,
177 "no-useless-rename": 2,
178 "no-useless-return": 2,
179 "no-var": 2,
180 "no-void": 2,
181 "no-warning-comments": 2,
182 "no-whitespace-before-property": 2,
183 "no-with": 2,
184 "nonblock-statement-body-position": 2,
185 "object-shorthand": [2, "consistent"],
186 "one-var": 2,
187 "operator-assignment": 2,
188 "prefer-arrow-callback": 2,
189 "prefer-const": 2,
190 "prefer-destructuring": 0,
191 "prefer-numeric-literals": 2,
192 "prefer-promise-reject-errors": 2,
193 "prefer-reflect": 2,
194 "prefer-rest-params": 2,
195 "prefer-spread": 2,
196 "prefer-template": 2,
197 "radix": 2,
198 "require-await": 2,
199 "require-jsdoc": 2,
200 "require-yield": 2,
201 "rest-spread-spacing": 2,
202 "semi-spacing": 2,
203 "semi-style": 2,
204 "semi": 2,
205 "space-infix-ops": 2,
206 "space-unary-ops": 2,
207 "spaced-comment": 2,
208 "strict": 2,
209 "switch-colon-spacing": 2,
210 "symbol-description": 2,
211 "template-curly-spacing": 2,
212 "template-tag-spacing": 2,
213 "unicode-bom": 2,
214 "use-isnan": 2,
215 "valid-jsdoc": 2,
216 "valid-typeof": 2,
217 "vars-on-top": 2,
218 "wrap-iife": 2,
219 "wrap-regex": 2,
220 "yield-star-spacing": 2,
221 "yoda": 2,
222 "no-negated-in-lhs": 2,
223 "object-curly-newline": 2,
224 "object-property-newline": 2,
225 "one-var-declaration-per-line": 2,
226 "operator-linebreak": 2,
227 "padding-line-between-statements": 2
228 },
229 "env": {
230 "node": true,
231 "es6": true
232 }
233}