UNPKG

6.04 kBPlain TextView Raw
1{
2 "env":{
3 "es6": true
4 },
5 "rules": {
6 // Possible Errors
7 "comma-dangle": 2,
8 "no-cond-assign": 2,
9 "no-console": 2,
10 "no-constant-condition": 2,
11 "no-control-regex": 2,
12 "no-debugger": 2,
13 "no-dupe-args": 2,
14 "no-dupe-keys": 2,
15 "no-duplicate-case": 2,
16 "no-empty-character-class": 2,
17 "no-empty": 2,
18 "no-ex-assign": 2,
19 "no-extra-boolean-cast": 2,
20 "no-extra-parens": 2,
21 "no-extra-semi": 2,
22 "no-func-assign": 2,
23 "no-inner-declarations": 2,
24 "no-invalid-regexp": 2,
25 "no-irregular-whitespace": 2,
26 "no-negated-in-lhs": 2,
27 "no-obj-calls": 2,
28 "no-regex-spaces": 2,
29 "no-sparse-arrays": 2,
30 "no-unexpected-multiline": 2,
31 "no-unreachable": 2,
32 "use-isnan": 2,
33 "valid-jsdoc": 2,
34 "valid-typeof": 2,
35 // Best Practices
36 "accessor-pairs": 2,
37 "array-callback-return": 2,
38 "block-scoped-var": 2,
39 "complexity": 2,
40 "consistent-return": 2,
41 "curly": 2,
42 "default-case": 2,
43 "dot-location": [
44 2,
45 "property"
46 ],
47 "dot-notation": 2,
48 "eqeqeq": [
49 2,
50 "smart"
51 ],
52 "guard-for-in": 2,
53 "no-alert": 2,
54 "no-caller": 2,
55 "no-case-declarations": 2,
56 "no-div-regex": 2,
57 "no-else-return": 2,
58 "no-empty-function": 2,
59 "no-empty-pattern": 2,
60 // duplicate of eqeqeq
61 "no-eq-null": 0,
62 "no-eval": 2,
63 "no-extend-native": 2,
64 "no-extra-bind": 2,
65 "no-extra-label": 2,
66 "no-fallthrough": 2,
67 "no-floating-decimal": 2,
68 "no-implicit-coercion": [
69 2,
70 {
71 "boolean": false,
72 "number": true,
73 "string": true,
74 "allow": [
75 "!!"
76 ]
77 }
78 ],
79 "no-implicit-globals": 2,
80 "no-implied-eval": 2,
81 "no-invalid-this": 2,
82 "no-iterator": 2,
83 "no-labels": 2,
84 "no-lone-blocks": 2,
85 "no-loop-func": 2,
86 "no-magic-numbers": 2,
87 "no-multi-spaces": 2,
88 "no-multi-str": 2,
89 "no-native-reassign": 2,
90 "no-new": 2,
91 "no-new-func": 2,
92 "no-new-wrappers": 2,
93 "no-octal": 2,
94 "no-octal-escape": 2,
95 "no-param-reassign": 2,
96 "no-process-env": 2,
97 "no-proto": 2,
98 "no-redeclare": 2,
99 "no-return-assign": 2,
100 "no-script-url": 2,
101 "no-self-assign": 2,
102 "no-self-compare": 2,
103 "no-sequences": 2,
104 "no-throw-literal": 2,
105 "no-unmodified-loop-condition": 2,
106 "no-unused-expressions": 2,
107 "no-unused-labels": 2,
108 "no-useless-call": 2,
109 "no-useless-concat": 2,
110 "no-void": 2,
111 "no-warning-comments": 1,
112 "no-with": 2,
113 "radix": 2,
114 "vars-on-top": 2,
115 "wrap-iife": 2,
116 "yoda": 2,
117 // strict mode
118 "strict": 2,
119 // variables
120 "init-declarations": 2,
121 "no-catch-shadow": 2,
122 "no-delete-var": 2,
123 "no-label-var": 2,
124 "no-shadow": 2,
125 "no-shadow-restricted-names": 2,
126 "no-undef": 2,
127 "no-undef-init": 2,
128 "no-undefined": 2,
129 "no-unused-vars": 2,
130 "no-use-before-define": [2, {"functions": false, "classes": true}],
131 // node.js and commonjs
132 "callback-return": 2,
133 "global-require": 2,
134 "handle-callback-err": 2,
135 "no-mixed-requires": [
136 2,
137 {
138 "grouping": true,
139 "allowCall": true
140 }
141 ],
142 "no-new-require": 2,
143 "no-path-concat": 2,
144 "no-process-exit": 2,
145 "no-restricted-imports": 0,
146 "no-restricted-modules": 0,
147 "no-sync": 2,
148 // stylistic issues
149 "array-bracket-spacing": 2,
150 "block-spacing": 2,
151 "brace-style": 2,
152 "camelcase": 2,
153 "comma-spacing": 2,
154 "comma-style": 2,
155 "computed-property-spacing": 2,
156 "consistent-this": 2,
157 "eol-last": 2,
158 "func-names": 2,
159 "func-style": [
160 2,
161 "declaration"
162 ],
163 "id-blacklist": 2,
164 "id-length": 2,
165 "id-match": 0,
166 "indent": [
167 2,
168 2
169 ],
170 "jsx-quotes": 0,
171 "key-spacing": 2,
172 "keyword-spacing": 2,
173 "linebreak-style": [
174 2,
175 "unix"
176 ],
177 "lines-around-comment": 2,
178 "max-depth": 2,
179 "max-len": 2,
180 "max-nested-callbacks": 2,
181 "max-params": 2,
182 "max-statements": 2,
183 "new-cap": 2,
184 "new-parens": 2,
185 "newline-after-var": 2,
186 "newline-per-chained-call": 2,
187 "no-array-constructor": 2,
188 "no-bitwise": 2,
189 "no-continue": 2,
190 "no-inline-comments": 2,
191 "no-lonely-if": 2,
192 "no-mixed-spaces-and-tabs": 2,
193 "no-multiple-empty-lines": 2,
194 "no-negated-condition": 2,
195 "no-nested-ternary": 2,
196 "no-new-object": 2,
197 "no-plusplus": 0,
198 "no-restricted-syntax": 0,
199 "no-spaced-func": 2,
200 "no-ternary": 0,
201 "no-trailing-spaces": 2,
202 "no-underscore-dangle": 2,
203 "no-unneeded-ternary": 2,
204 "no-whitespace-before-property": 2,
205 "object-curly-spacing": 2,
206 "one-var": [
207 2,
208 "never"
209 ],
210 "one-var-declaration-per-line": 2,
211 "operator-assignment": 2,
212 "operator-linebreak": 2,
213 "padded-blocks": [
214 2,
215 "never"
216 ],
217 "quote-props": [
218 2,
219 "as-needed",
220 {
221 "keywords": true
222 }
223 ],
224 "quotes": [2, "single"],
225 "require-jsdoc": 0,
226 "semi": 2,
227 "semi-spacing": 2,
228 "sort-imports": 2,
229 "sort-vars": 2,
230 "space-before-blocks": 2,
231 "space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
232 "space-in-parens": 2,
233 "space-infix-ops": 2,
234 "space-unary-ops": 2,
235 "spaced-comment": 0,
236 "wrap-regex": 0,
237 // ECMAScript 6
238 "arrow-body-style": 2,
239 "arrow-parens": [2, "as-needed"],
240 "arrow-spacing": 2,
241 "constructor-super": 2,
242 "generator-star-spacing": 2,
243 "no-class-assign": 2,
244 "no-confusing-arrow": 2,
245 "no-const-assign": 2,
246 "no-dupe-class-members": 2,
247 "no-new-symbol": 2,
248 "no-this-before-super": 2,
249 "no-useless-constructor": 2,
250 "no-var": 2,
251 "object-shorthand": 2,
252 "prefer-arrow-callback": 2,
253 "prefer-const": 2,
254 "prefer-reflect": 2,
255 "prefer-rest-params": 2,
256 "prefer-spread": 2,
257 "prefer-template": 2,
258 "require-yield": 2,
259 "template-curly-spacing": 2,
260 "yield-star-spacing": 2
261 }
262}