Skip to content

Commit 58a4d05

Browse files
committed
add disabled rules as well for easier config updating
1 parent 497c901 commit 58a4d05

File tree

1 file changed

+185
-0
lines changed

1 file changed

+185
-0
lines changed

.eslintrc

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,61 +34,143 @@ overrides:
3434

3535
rules:
3636
accessor-pairs: [2]
37+
array-bracket-newline: [0]
3738
array-bracket-spacing: [2, never]
39+
array-callback-return: [0]
40+
array-element-newline: [0]
41+
arrow-body-style: [0]
3842
arrow-parens: [2, always]
3943
arrow-spacing: [2, {before: true, after: true}]
4044
block-scoped-var: [2]
4145
brace-style: [2, 1tbs, {allowSingleLine: true}]
46+
callback-return: [0]
47+
camelcase: [0]
48+
capitalized-comments: [0]
49+
class-methods-use-this: [0]
4250
comma-dangle: [2, only-multiline]
4351
comma-spacing: [2, {before: false, after: true}]
4452
comma-style: [2, last]
53+
complexity: [0]
4554
computed-property-spacing: [2, never]
55+
consistent-return: [0]
56+
consistent-this: [0]
4657
constructor-super: [2]
58+
curly: [0]
4759
default-case-last: [2]
60+
default-case: [0]
61+
default-param-last: [0]
4862
dot-location: [2, property]
63+
dot-notation: [0]
4964
eol-last: [2]
5065
eqeqeq: [2]
5166
for-direction: [2]
5267
func-call-spacing: [2, never]
5368
func-name-matching: [2]
69+
func-names: [0]
70+
func-style: [0]
71+
function-call-argument-newline: [0]
72+
function-paren-newline: [0]
73+
generator-star-spacing: [0]
5474
getter-return: [2]
75+
global-require: [0]
5576
grouped-accessor-pairs: [2]
77+
guard-for-in: [0]
78+
handle-callback-err: [0]
79+
id-blacklist: [0]
80+
id-length: [0]
81+
id-match: [0]
82+
implicit-arrow-linebreak: [0]
83+
import/default: [0]
84+
import/dynamic-import-chunkname: [0]
5685
import/export: [2]
86+
import/exports-last: [0]
5787
import/extensions: [2, always, {ignorePackages: true}]
5888
import/first: [2]
89+
import/group-exports: [0]
90+
import/max-dependencies: [0]
5991
import/named: [2]
92+
import/namespace: [0]
93+
import/newline-after-import: [0]
94+
import/no-absolute-path: [0]
95+
import/no-amd: [0]
96+
import/no-anonymous-default-export: [0]
97+
import/no-commonjs: [0]
98+
import/no-cycle: [0]
99+
import/no-default-export: [0]
100+
import/no-deprecated: [0]
101+
import/no-dynamic-require: [0]
60102
import/no-extraneous-dependencies: [2]
103+
import/no-internal-modules: [0]
61104
import/no-mutable-exports: [2]
105+
import/no-named-as-default-member: [0]
62106
import/no-named-as-default: [2]
107+
import/no-named-default: [0]
108+
import/no-named-export: [0]
109+
import/no-namespace: [0]
110+
import/no-nodejs-modules: [0]
111+
import/no-relative-parent-imports: [0]
112+
import/no-restricted-paths: [0]
63113
import/no-self-import: [2]
114+
import/no-unassigned-import: [0]
64115
import/no-unresolved: [2, {commonjs: true}]
116+
import/no-unused-modules: [0]
65117
import/no-useless-path-segments: [2, {commonjs: true}]
66118
import/no-webpack-loader-syntax: [2]
119+
import/order: [0]
120+
import/prefer-default-export: [0]
121+
import/unambiguous: [0]
67122
indent: [2, 2, {ignoreComments: true, SwitchCase: 1}]
123+
init-declarations: [0]
68124
key-spacing: [2]
69125
keyword-spacing: [2]
126+
line-comment-position: [0]
70127
linebreak-style: [2, unix]
128+
lines-around-comment: [0]
129+
lines-between-class-members: [0]
130+
max-classes-per-file: [0]
131+
max-depth: [0]
132+
max-len: [0]
133+
max-lines-per-function: [0]
134+
max-lines: [0]
135+
max-nested-callbacks: [0]
136+
max-params: [0]
137+
max-statements-per-line: [0]
138+
max-statements: [0]
71139
multiline-comment-style: [2, separate-lines]
140+
multiline-ternary: [0]
141+
new-cap: [0]
72142
new-parens: [2]
143+
newline-per-chained-call: [0]
144+
no-alert: [0]
73145
no-array-constructor: [2]
74146
no-async-promise-executor: [2]
147+
no-await-in-loop: [0]
148+
no-bitwise: [0]
149+
no-buffer-constructor: [0]
75150
no-caller: [2]
76151
no-case-declarations: [2]
77152
no-class-assign: [2]
78153
no-compare-neg-zero: [2]
79154
no-cond-assign: [2, except-parens]
155+
no-confusing-arrow: [0]
80156
no-console: [1, {allow: [info, warn, error]}]
81157
no-const-assign: [2]
158+
no-constant-condition: [0]
82159
no-constructor-return: [2]
160+
no-continue: [0]
161+
no-control-regex: [0]
83162
no-debugger: [1]
84163
no-delete-var: [2]
164+
no-div-regex: [0]
85165
no-dupe-args: [2]
86166
no-dupe-class-members: [2]
87167
no-dupe-else-if: [2]
88168
no-dupe-keys: [2]
89169
no-duplicate-case: [2]
90170
no-duplicate-imports: [2]
171+
no-else-return: [0]
91172
no-empty-character-class: [2]
173+
no-empty-function: [0]
92174
no-empty-pattern: [2]
93175
no-empty: [2, {allowEmptyCatch: true}]
94176
no-eq-null: [2]
@@ -97,131 +179,234 @@ rules:
97179
no-extend-native: [2]
98180
no-extra-bind: [2]
99181
no-extra-boolean-cast: [2]
182+
no-extra-label: [0]
183+
no-extra-parens: [0]
100184
no-extra-semi: [2]
101185
no-fallthrough: [2]
186+
no-floating-decimal: [0]
102187
no-func-assign: [2]
103188
no-global-assign: [2]
189+
no-implicit-coercion: [0]
190+
no-implicit-globals: [0]
104191
no-implied-eval: [2]
105192
no-import-assign: [2]
193+
no-inline-comments: [0]
106194
no-inner-declarations: [2]
107195
no-invalid-regexp: [2]
196+
no-invalid-this: [0]
108197
no-irregular-whitespace: [2]
109198
no-iterator: [2]
110199
no-label-var: [2]
111200
no-labels: [2]
112201
no-lone-blocks: [2]
202+
no-lonely-if: [0]
203+
no-loop-func: [0]
113204
no-loss-of-precision: [2]
205+
no-magic-numbers: [0]
114206
no-misleading-character-class: [2]
207+
no-mixed-operators: [0]
208+
no-mixed-requires: [0]
115209
no-mixed-spaces-and-tabs: [2]
210+
no-multi-assign: [0]
116211
no-multi-spaces: [2, {ignoreEOLComments: true, exceptions: {Property: true, VariableDeclarator: true}}]
117212
no-multi-str: [2]
213+
no-negated-condition: [0]
214+
no-nested-ternary: [0]
118215
no-new-func: [2]
119216
no-new-object: [2]
217+
no-new-require: [0]
120218
no-new-symbol: [2]
121219
no-new-wrappers: [2]
220+
no-new: [0]
122221
no-obj-calls: [2]
123222
no-octal-escape: [2]
124223
no-octal: [2]
224+
no-param-reassign: [0]
225+
no-path-concat: [0]
226+
no-process-env: [0]
227+
no-process-exit: [0]
125228
no-proto: [2]
126229
no-prototype-builtins: [2]
127230
no-redeclare: [2]
128231
no-regex-spaces: [2]
232+
no-restricted-exports: [0]
233+
no-restricted-globals: [0]
234+
no-restricted-imports: [0]
235+
no-restricted-modules: [0]
129236
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement]
237+
no-return-assign: [0]
238+
no-return-await: [0]
130239
no-script-url: [2]
131240
no-self-assign: [2, {props: true}]
132241
no-self-compare: [2]
133242
no-sequences: [2]
134243
no-setter-return: [2]
135244
no-shadow-restricted-names: [2]
245+
no-shadow: [0]
136246
no-sparse-arrays: [2]
247+
no-sync: [0]
137248
no-tabs: [2]
138249
no-template-curly-in-string: [2]
250+
no-ternary: [0]
139251
no-this-before-super: [2]
140252
no-throw-literal: [2]
141253
no-trailing-spaces: [2]
142254
no-undef-init: [2]
143255
no-undef: [2, {typeof: true}]
256+
no-undefined: [0]
257+
no-underscore-dangle: [0]
144258
no-unexpected-multiline: [2]
145259
no-unmodified-loop-condition: [2]
260+
no-unneeded-ternary: [0]
146261
no-unreachable: [2]
147262
no-unsafe-finally: [2]
148263
no-unsafe-negation: [2]
149264
no-unused-expressions: [2]
150265
no-unused-labels: [2]
151266
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, ignoreRestSiblings: false}]
152267
no-use-before-define: [2, nofunc]
268+
no-useless-backreference: [0]
153269
no-useless-call: [2]
154270
no-useless-catch: [2]
155271
no-useless-computed-key: [2]
156272
no-useless-concat: [2]
157273
no-useless-constructor: [2]
158274
no-useless-escape: [2]
159275
no-useless-rename: [2]
276+
no-useless-return: [0]
160277
no-var: [2]
161278
no-void: [2]
279+
no-warning-comments: [0]
162280
no-whitespace-before-property: [2]
163281
no-with: [2]
164282
nonblock-statement-body-position: [2]
283+
object-curly-newline: [0]
165284
object-curly-spacing: [2, never]
166285
object-shorthand: [2, always]
286+
one-var-declaration-per-line: [0]
287+
one-var: [0]
167288
operator-assignment: [2, always]
168289
operator-linebreak: [2, after]
169290
padded-blocks: [2, never]
291+
padding-line-between-statements: [0]
170292
prefer-arrow-callback: [2, {allowNamedFunctions: true, allowUnboundThis: true}]
171293
prefer-const: [2, {destructuring: all}]
294+
prefer-destructuring: [0]
172295
prefer-exponentiation-operator: [2]
296+
prefer-named-capture-group: [0]
173297
prefer-numeric-literals: [2]
298+
prefer-object-spread: [0]
174299
prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
175300
prefer-regex-literals: [2]
176301
prefer-rest-params: [2]
177302
prefer-spread: [2]
178303
prefer-template: [2]
304+
quote-props: [0]
179305
quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
180306
radix: [2, as-needed]
307+
require-atomic-updates: [0]
308+
require-await: [0]
309+
require-unicode-regexp: [0]
181310
require-yield: [2]
182311
rest-spread-spacing: [2, never]
183312
semi-spacing: [2, {before: false, after: true}]
184313
semi-style: [2, last]
185314
semi: [2, always, {omitLastInOneLineBlock: true}]
315+
sonarjs/cognitive-complexity: [0]
316+
sonarjs/max-switch-cases: [0]
186317
sonarjs/no-all-duplicated-branches: [2]
318+
sonarjs/no-collapsible-if: [0]
187319
sonarjs/no-collection-size-mischeck: [2]
320+
sonarjs/no-duplicate-string: [0]
321+
sonarjs/no-duplicated-branches: [0]
188322
sonarjs/no-element-overwrite: [2]
323+
sonarjs/no-extra-arguments: [0]
189324
sonarjs/no-identical-conditions: [2]
325+
sonarjs/no-identical-expressions: [0]
326+
sonarjs/no-identical-functions: [0]
190327
sonarjs/no-inverted-boolean-check: [2]
191328
sonarjs/no-one-iteration-loop: [2]
192329
sonarjs/no-redundant-boolean: [2]
330+
sonarjs/no-redundant-jump: [0]
193331
sonarjs/no-same-line-conditional: [2]
332+
sonarjs/no-small-switch: [0]
194333
sonarjs/no-unused-collection: [2]
195334
sonarjs/no-use-of-empty-return-value: [2]
335+
sonarjs/no-useless-catch: [0]
336+
sonarjs/prefer-immediate-return: [0]
196337
sonarjs/prefer-object-literal: [2]
338+
sonarjs/prefer-single-boolean-return: [0]
197339
sonarjs/prefer-while: [2]
340+
sort-imports: [0]
341+
sort-keys: [0]
342+
sort-vars: [0]
198343
space-before-blocks: [2, always]
199344
space-in-parens: [2, never]
200345
space-infix-ops: [2]
201346
space-unary-ops: [2]
202347
spaced-comment: [2, always]
348+
strict: [0]
203349
switch-colon-spacing: [2]
204350
symbol-description: [2]
205351
template-curly-spacing: [2, never]
206352
template-tag-spacing: [2, never]
207353
unicode-bom: [2, never]
354+
unicorn/better-regex: [0]
355+
unicorn/catch-error-name: [0]
208356
unicorn/consistent-function-scoping: [2]
357+
unicorn/custom-error-definition: [0]
358+
unicorn/error-message: [0]
359+
unicorn/escape-case: [0]
360+
unicorn/expiring-todo-comments: [0]
361+
unicorn/explicit-length-check: [0]
362+
unicorn/filename-case: [0]
363+
unicorn/import-index: [0]
209364
unicorn/new-for-builtins: [2]
365+
unicorn/no-abusive-eslint-disable: [0]
366+
unicorn/no-array-instanceof: [0]
367+
unicorn/no-console-spaces: [0]
368+
unicorn/no-fn-reference-in-iterator: [0]
369+
unicorn/no-for-loop: [0]
370+
unicorn/no-hex-escape: [0]
371+
unicorn/no-keyword-prefix: [0]
372+
unicorn/no-nested-ternary: [0]
373+
unicorn/no-new-buffer: [0]
374+
unicorn/no-null: [0]
375+
unicorn/no-process-exit: [0]
210376
unicorn/no-reduce: [2]
377+
unicorn/no-unreadable-array-destructuring: [0]
378+
unicorn/no-unsafe-regex: [0]
211379
unicorn/no-unused-properties: [2]
380+
unicorn/no-useless-undefined: [0]
212381
unicorn/no-zero-fractions: [2]
382+
unicorn/number-literal-case: [0]
213383
unicorn/prefer-add-event-listener: [2]
214384
unicorn/prefer-dataset: [2]
215385
unicorn/prefer-event-key: [2]
216386
unicorn/prefer-includes: [2]
387+
unicorn/prefer-modern-dom-apis: [0]
217388
unicorn/prefer-negative-index: [2]
389+
unicorn/prefer-node-append: [0]
390+
unicorn/prefer-node-remove: [0]
391+
unicorn/prefer-number-properties: [0]
218392
unicorn/prefer-optional-catch-binding: [2]
393+
unicorn/prefer-query-selector: [0]
394+
unicorn/prefer-reflect-apply: [0]
395+
unicorn/prefer-replace-all: [0]
396+
unicorn/prefer-set-has: [0]
397+
unicorn/prefer-spread: [0]
219398
unicorn/prefer-starts-ends-with: [2]
399+
unicorn/prefer-string-slice: [0]
220400
unicorn/prefer-text-content: [2]
221401
unicorn/prefer-trim-start-end: [2]
402+
unicorn/prefer-type-error: [0]
403+
unicorn/prevent-abbreviations: [0]
404+
unicorn/string-content: [0]
222405
unicorn/throw-new-error: [2]
223406
use-isnan: [2]
224407
valid-typeof: [2, {requireStringLiterals: true}]
408+
vars-on-top: [0]
225409
wrap-iife: [2, inside]
410+
wrap-regex: [0]
226411
yield-star-spacing: [2, after]
227412
yoda: [2, never]

0 commit comments

Comments
 (0)