1- // https://github.com/eslint/eslint/blob/master/docs/rules/README.md
2- // list of possible rules and what they mean
31{
4- "ecmaFeatures" : {},
5- "parser" : " espree" ,
6- "env" : {
7- "node" : true
8- },
2+ "parser" : " espree" ,
3+ "ecmaFeatures" : {},
4+ "rules" : {
5+ "no-alert" : 0 ,
6+ "no-array-constructor" : 0 ,
7+ "no-arrow-condition" : 0 ,
8+ "no-bitwise" : 0 ,
9+ "no-caller" : 0 ,
10+ "no-catch-shadow" : 0 ,
11+ "no-class-assign" : 0 ,
12+ "no-cond-assign" : 2 ,
13+ "no-console" : 0 ,
14+ "no-const-assign" : 0 ,
15+ "no-constant-condition" : 2 ,
16+ "no-continue" : 0 ,
17+ "no-control-regex" : 2 ,
18+ "no-debugger" : 2 ,
19+ "no-delete-var" : 2 ,
20+ "no-div-regex" : 0 ,
21+ "no-dupe-class-members" : 0 ,
22+ "no-dupe-keys" : 2 ,
23+ "no-dupe-args" : 2 ,
24+ "no-duplicate-case" : 2 ,
25+ "no-else-return" : 0 ,
26+ "no-empty" : 2 ,
27+ "no-empty-character-class" : 2 ,
28+ "no-empty-label" : 0 ,
29+ "no-empty-pattern" : 0 ,
30+ "no-eq-null" : 0 ,
31+ "no-eval" : 0 ,
32+ "no-ex-assign" : 2 ,
33+ "no-extend-native" : 0 ,
34+ "no-extra-bind" : 0 ,
35+ "no-extra-boolean-cast" : 2 ,
36+ "no-extra-parens" : 0 ,
37+ "no-extra-semi" : 2 ,
38+ "no-fallthrough" : 2 ,
39+ "no-floating-decimal" : 0 ,
40+ "no-func-assign" : 2 ,
41+ "no-implicit-coercion" : 0 ,
42+ "no-implied-eval" : 0 ,
43+ "no-inline-comments" : 0 ,
44+ "no-inner-declarations" : [2 , " functions" ],
45+ "no-invalid-regexp" : 2 ,
46+ "no-invalid-this" : 0 ,
47+ "no-irregular-whitespace" : 2 ,
48+ "no-iterator" : 0 ,
49+ "no-label-var" : 0 ,
50+ "no-labels" : 0 ,
51+ "no-lone-blocks" : 0 ,
52+ "no-lonely-if" : 0 ,
53+ "no-loop-func" : 0 ,
54+ "no-mixed-requires" : [0 , false ],
55+ "no-mixed-spaces-and-tabs" : [2 , false ],
56+ "linebreak-style" : [0 , " unix" ],
57+ "no-multi-spaces" : 0 ,
58+ "no-multi-str" : 0 ,
59+ "no-multiple-empty-lines" : [0 , {"max" : 2 }],
60+ "no-native-reassign" : 0 ,
61+ "no-negated-condition" : 0 ,
62+ "no-negated-in-lhs" : 2 ,
63+ "no-nested-ternary" : 0 ,
64+ "no-new" : 0 ,
65+ "no-new-func" : 0 ,
66+ "no-new-object" : 0 ,
67+ "no-new-require" : 0 ,
68+ "no-new-wrappers" : 0 ,
69+ "no-obj-calls" : 2 ,
70+ "no-octal" : 2 ,
71+ "no-octal-escape" : 0 ,
72+ "no-param-reassign" : 0 ,
73+ "no-path-concat" : 0 ,
74+ "no-plusplus" : 0 ,
75+ "no-process-env" : 0 ,
76+ "no-process-exit" : 0 ,
77+ "no-proto" : 0 ,
78+ "no-redeclare" : 2 ,
79+ "no-regex-spaces" : 2 ,
80+ "no-restricted-modules" : 0 ,
81+ "no-restricted-syntax" : 0 ,
82+ "no-return-assign" : 0 ,
83+ "no-script-url" : 0 ,
84+ "no-self-compare" : 0 ,
85+ "no-sequences" : 0 ,
86+ "no-shadow" : 0 ,
87+ "no-shadow-restricted-names" : 0 ,
88+ "no-spaced-func" : 0 ,
89+ "no-sparse-arrays" : 2 ,
90+ "no-sync" : 0 ,
91+ "no-ternary" : 0 ,
92+ "no-trailing-spaces" : 0 ,
93+ "no-this-before-super" : 0 ,
94+ "no-throw-literal" : 0 ,
95+ "no-undef" : 0 ,
96+ "no-undef-init" : 0 ,
97+ "no-undefined" : 0 ,
98+ "no-unexpected-multiline" : 0 ,
99+ "no-underscore-dangle" : 0 ,
100+ "no-unneeded-ternary" : 0 ,
101+ "no-unreachable" : 2 ,
102+ "no-unused-expressions" : 0 ,
103+ "no-unused-vars" : [2 , {"vars" : " all" , "args" : " after-used" }],
104+ "no-use-before-define" : 0 ,
105+ "no-useless-call" : 0 ,
106+ "no-useless-concat" : 0 ,
107+ "no-void" : 0 ,
108+ "no-var" : 0 ,
109+ "no-warning-comments" : [0 , { "terms" : [" todo" , " fixme" , " xxx" ], "location" : " start" }],
110+ "no-with" : 0 ,
111+ "no-magic-numbers" : 0 ,
9112
10- "rules" : {
11- "no-alert" : 2 ,
12- "no-array-constructor" : 2 ,
13- "no-bitwise" : 0 ,
14- "no-caller" : 2 ,
15- "no-catch-shadow" : 2 ,
16- "no-comma-dangle" : 0 ,
17- "no-cond-assign" : 2 ,
18- "no-console" : 1 ,
19- "no-constant-condition" : 2 ,
20- "no-continue" : 0 ,
21- "no-control-regex" : 2 ,
22- "no-debugger" : 2 ,
23- "no-delete-var" : 2 ,
24- "no-div-regex" : 0 ,
25- "no-dupe-keys" : 2 ,
26- "no-dupe-args" : 2 ,
27- "no-duplicate-case" : 2 ,
28- "no-else-return" : 0 ,
29- "no-empty" : 2 ,
30- "no-empty-class" : 0 ,
31- "no-empty-character-class" : 2 ,
32- "no-empty-label" : 2 ,
33- "no-eq-null" : 0 ,
34- "no-eval" : 2 ,
35- "no-ex-assign" : 2 ,
36- "no-extend-native" : 2 ,
37- "no-extra-bind" : 2 ,
38- "no-extra-boolean-cast" : 2 ,
39- "no-extra-parens" : 0 ,
40- "no-extra-semi" : 2 ,
41- "no-extra-strict" : 2 ,
42- "no-fallthrough" : 2 ,
43- "no-floating-decimal" : 0 ,
44- "no-func-assign" : 2 ,
45- "no-implied-eval" : 2 ,
46- "no-inline-comments" : 0 ,
47- "no-inner-declarations" : [2 , " functions" ],
48- "no-invalid-regexp" : 2 ,
49- "no-irregular-whitespace" : 2 ,
50- "no-iterator" : 2 ,
51- "no-label-var" : 2 ,
52- "no-labels" : 2 ,
53- "no-lone-blocks" : 2 ,
54- "no-lonely-if" : 0 ,
55- "no-loop-func" : 1 ,
56- "no-mixed-requires" : [0 , false ],
57- "no-mixed-spaces-and-tabs" : [2 , false ],
58- "linebreak-style" : [0 , " unix" ],
59- "no-multi-spaces" : 2 ,
60- "no-multi-str" : 2 ,
61- "no-multiple-empty-lines" : [0 , {"max" : 2 }],
62- "no-native-reassign" : 2 ,
63- "no-negated-in-lhs" : 2 ,
64- "no-nested-ternary" : 0 ,
65- "no-new" : 2 ,
66- "no-new-func" : 2 ,
67- "no-new-object" : 2 ,
68- "no-new-require" : 0 ,
69- "no-new-wrappers" : 2 ,
70- "no-obj-calls" : 2 ,
71- "no-octal" : 2 ,
72- "no-octal-escape" : 2 ,
73- "no-param-reassign" : 0 ,
74- "no-path-concat" : 0 ,
75- "no-plusplus" : 0 ,
76- "no-process-env" : 0 ,
77- "no-process-exit" : 2 ,
78- "no-proto" : 2 ,
79- "no-redeclare" : 2 ,
80- "no-regex-spaces" : 2 ,
81- "no-reserved-keys" : 0 ,
82- "no-restricted-modules" : 0 ,
83- "no-return-assign" : 2 ,
84- "no-script-url" : 2 ,
85- "no-self-compare" : 0 ,
86- "no-sequences" : 2 ,
87- "no-shadow" : 2 ,
88- "no-shadow-restricted-names" : 2 ,
89- "no-space-before-semi" : 0 ,
90- "no-spaced-func" : 2 ,
91- "no-sparse-arrays" : 2 ,
92- "no-sync" : 0 ,
93- "no-ternary" : 0 ,
94- "no-trailing-spaces" : 2 ,
95- "no-this-before-super" : 0 ,
96- "no-throw-literal" : 0 ,
97- "no-undef" : 2 ,
98- "no-undef-init" : 2 ,
99- "no-undefined" : 0 ,
100- "no-unexpected-multiline" : 0 ,
101- "no-underscore-dangle" : 2 ,
102- "no-unneeded-ternary" : 0 ,
103- "no-unreachable" : 2 ,
104- "no-unused-expressions" : 2 ,
105- "no-unused-vars" : [1 , {"vars" : " all" , "args" : " after-used" }],
106- "no-use-before-define" : 2 ,
107- "no-void" : 0 ,
108- "no-var" : 0 ,
109- "prefer-const" : 0 ,
110- "no-warning-comments" : [0 , { "terms" : [" todo" , " fixme" , " xxx" ], "location" : " start" }],
111- "no-with" : 2 ,
112- "no-wrap-func" : 2 ,
113-
114- "array-bracket-spacing" : [0 , " never" ],
115- "accessor-pairs" : 0 ,
116- "block-scoped-var" : 0 ,
117- "brace-style" : [0 , " 1tbs" ],
118- "callback-return" : 0 ,
119- "camelcase" : 2 ,
120- "comma-dangle" : [2 , " never" ],
121- "comma-spacing" : 2 ,
122- "comma-style" : 0 ,
123- "complexity" : [0 , 11 ],
124- "computed-property-spacing" : [0 , " never" ],
125- "consistent-return" : 2 ,
126- "consistent-this" : [0 , " that" ],
127- "constructor-super" : 0 ,
128- "curly" : [2 , " all" ],
129- "default-case" : 0 ,
130- "dot-location" : 0 ,
131- "dot-notation" : [1 , { "allowKeywords" : true }],
132- "eol-last" : 2 ,
133- "eqeqeq" : 2 ,
134- "func-names" : 0 ,
135- "func-style" : [0 , " declaration" ],
136- "generator-star" : 0 ,
137- "generator-star-spacing" : 0 ,
138- "guard-for-in" : 0 ,
139- "handle-callback-err" : 0 ,
140- "indent" : 0 ,
141- "init-declarations" : 0 ,
142- "key-spacing" : [2 , { "beforeColon" : false , "afterColon" : true }],
143- "lines-around-comment" : 0 ,
144- "max-depth" : [0 , 4 ],
145- "max-len" : [0 , 80 , 4 ],
146- "max-nested-callbacks" : [0 , 2 ],
147- "max-params" : [0 , 3 ],
148- "max-statements" : [0 , 10 ],
149- "new-cap" : 2 ,
150- "new-parens" : 2 ,
151- "newline-after-var" : 0 ,
152- "object-curly-spacing" : [0 , " never" ],
153- "object-shorthand" : 0 ,
154- "one-var" : 0 ,
155- "operator-assignment" : [0 , " always" ],
156- "operator-linebreak" : 0 ,
157- "padded-blocks" : 0 ,
158- "quote-props" : 0 ,
159- "quotes" : [2 , " double" ],
160- "radix" : 0 ,
161- "require-yield" : 0 ,
162- "semi" : 2 ,
163- "semi-spacing" : [2 , {"before" : false , "after" : true }],
164- "sort-vars" : 0 ,
165- "space-after-function-name" : [0 , " never" ],
166- "space-after-keywords" : [0 , " always" ],
167- "space-before-blocks" : [0 , " always" ],
168- "space-before-function-paren" : [0 , " always" ],
169- "space-before-function-parentheses" : [0 , " always" ],
170- "space-in-brackets" : [0 , " never" ],
171- "space-in-parens" : [0 , " never" ],
172- "space-infix-ops" : 2 ,
173- "space-return-throw-case" : 2 ,
174- "space-unary-ops" : [2 , { "words" : true , "nonwords" : false }],
175- "spaced-comment" : 0 ,
176- "spaced-line-comment" : [0 , " always" ],
177- "strict" : [2 , " global" ],
178- "use-isnan" : 2 ,
179- "valid-jsdoc" : 0 ,
180- "valid-typeof" : 2 ,
181- "vars-on-top" : 0 ,
182- "wrap-iife" : 0 ,
183- "wrap-regex" : 0 ,
184- "yoda" : [2 , " never" ]
185- }
186- }
113+ "array-bracket-spacing" : [0 , " never" ],
114+ "arrow-body-style" : [0 , " as-needed" ],
115+ "arrow-parens" : 0 ,
116+ "arrow-spacing" : 0 ,
117+ "accessor-pairs" : 0 ,
118+ "block-scoped-var" : 0 ,
119+ "block-spacing" : 0 ,
120+ "brace-style" : [0 , " 1tbs" ],
121+ "callback-return" : 0 ,
122+ "camelcase" : 0 ,
123+ "comma-dangle" : [2 , " never" ],
124+ "comma-spacing" : 0 ,
125+ "comma-style" : 0 ,
126+ "complexity" : [0 , 11 ],
127+ "computed-property-spacing" : [0 , " never" ],
128+ "consistent-return" : 0 ,
129+ "consistent-this" : [0 , " that" ],
130+ "constructor-super" : 0 ,
131+ "curly" : [0 , " all" ],
132+ "default-case" : 0 ,
133+ "dot-location" : 0 ,
134+ "dot-notation" : [0 , { "allowKeywords" : true }],
135+ "eol-last" : 0 ,
136+ "eqeqeq" : 0 ,
137+ "func-names" : 0 ,
138+ "func-style" : [0 , " declaration" ],
139+ "generator-star-spacing" : 0 ,
140+ "global-require" : 0 ,
141+ "guard-for-in" : 0 ,
142+ "handle-callback-err" : 0 ,
143+ "id-length" : 0 ,
144+ "indent" : 0 ,
145+ "init-declarations" : 0 ,
146+ "jsx-quotes" : [0 , " prefer-double" ],
147+ "key-spacing" : [0 , { "beforeColon" : false , "afterColon" : true }],
148+ "lines-around-comment" : 0 ,
149+ "max-depth" : [0 , 4 ],
150+ "max-len" : [0 , 80 , 4 ],
151+ "max-nested-callbacks" : [0 , 2 ],
152+ "max-params" : [0 , 3 ],
153+ "max-statements" : [0 , 10 ],
154+ "new-cap" : 0 ,
155+ "new-parens" : 0 ,
156+ "newline-after-var" : 0 ,
157+ "object-curly-spacing" : [0 , " never" ],
158+ "object-shorthand" : 0 ,
159+ "one-var" : [0 , " always" ],
160+ "operator-assignment" : [0 , " always" ],
161+ "operator-linebreak" : 0 ,
162+ "padded-blocks" : 0 ,
163+ "prefer-arrow-callback" : 0 ,
164+ "prefer-const" : 0 ,
165+ "prefer-spread" : 0 ,
166+ "prefer-reflect" : 0 ,
167+ "prefer-template" : 0 ,
168+ "quote-props" : 0 ,
169+ "quotes" : [0 , " double" ],
170+ "radix" : 0 ,
171+ "id-match" : 0 ,
172+ "require-jsdoc" : 0 ,
173+ "require-yield" : 0 ,
174+ "semi" : 0 ,
175+ "semi-spacing" : [0 , {"before" : false , "after" : true }],
176+ "sort-vars" : 0 ,
177+ "space-after-keywords" : [0 , " always" ],
178+ "space-before-keywords" : [0 , " always" ],
179+ "space-before-blocks" : [0 , " always" ],
180+ "space-before-function-paren" : [0 , " always" ],
181+ "space-in-parens" : [0 , " never" ],
182+ "space-infix-ops" : 0 ,
183+ "space-return-throw-case" : 0 ,
184+ "space-unary-ops" : [0 , { "words" : true , "nonwords" : false }],
185+ "spaced-comment" : 0 ,
186+ "strict" : 0 ,
187+ "use-isnan" : 2 ,
188+ "valid-jsdoc" : 0 ,
189+ "valid-typeof" : 2 ,
190+ "vars-on-top" : 0 ,
191+ "wrap-iife" : 0 ,
192+ "wrap-regex" : 0 ,
193+ "yoda" : [0 , " never" ]
194+ }
195+ }
0 commit comments