gitech
/
.eslintrc.yaml
845 строк · 28.5 Кб
1root: true
2reportUnusedDisableDirectives: true
3
4ignorePatterns:
5- /web_src/js/vendor
6- /web_src/fomantic
7
8parserOptions:
9sourceType: module
10ecmaVersion: latest
11
12plugins:
13- "@eslint-community/eslint-plugin-eslint-comments"
14- "@stylistic/eslint-plugin-js"
15- eslint-plugin-array-func
16- eslint-plugin-github
17- eslint-plugin-i
18- eslint-plugin-jquery
19- eslint-plugin-no-jquery
20- eslint-plugin-no-use-extend-native
21- eslint-plugin-regexp
22- eslint-plugin-sonarjs
23- eslint-plugin-unicorn
24- eslint-plugin-vitest
25- eslint-plugin-vitest-globals
26- eslint-plugin-wc
27
28env:
29es2024: true
30node: true
31
32overrides:
33- files: ["web_src/**/*"]
34globals:
35__webpack_public_path__: true
36process: false # https://github.com/webpack/webpack/issues/15833
37- files: ["web_src/**/*", "docs/**/*"]
38env:
39browser: true
40node: false
41- files: ["web_src/**/*worker.*"]
42env:
43worker: true
44rules:
45no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, locationbar, menubar, moveBy, moveTo, name, onblur, onerror, onfocus, onload, onresize, onunload, open, opener, opera, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, print, removeEventListener, resizeBy, resizeTo, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollbars, scrollBy, scrollTo, scrollX, scrollY, status, statusbar, stop, toolbar, top]
46- files: ["*.config.*"]
47rules:
48i/no-unused-modules: [0]
49- files: ["**/*.test.*", "web_src/js/test/setup.js"]
50env:
51vitest-globals/env: true
52rules:
53vitest/consistent-test-filename: [0]
54vitest/consistent-test-it: [0]
55vitest/expect-expect: [0]
56vitest/max-expects: [0]
57vitest/max-nested-describe: [0]
58vitest/no-alias-methods: [0]
59vitest/no-commented-out-tests: [0]
60vitest/no-conditional-expect: [0]
61vitest/no-conditional-in-test: [0]
62vitest/no-conditional-tests: [0]
63vitest/no-disabled-tests: [0]
64vitest/no-done-callback: [0]
65vitest/no-duplicate-hooks: [0]
66vitest/no-focused-tests: [0]
67vitest/no-hooks: [0]
68vitest/no-identical-title: [2]
69vitest/no-interpolation-in-snapshots: [0]
70vitest/no-large-snapshots: [0]
71vitest/no-mocks-import: [0]
72vitest/no-restricted-matchers: [0]
73vitest/no-restricted-vi-methods: [0]
74vitest/no-standalone-expect: [0]
75vitest/no-test-prefixes: [0]
76vitest/no-test-return-statement: [0]
77vitest/prefer-called-with: [0]
78vitest/prefer-comparison-matcher: [0]
79vitest/prefer-each: [0]
80vitest/prefer-equality-matcher: [0]
81vitest/prefer-expect-resolves: [0]
82vitest/prefer-hooks-in-order: [0]
83vitest/prefer-hooks-on-top: [2]
84vitest/prefer-lowercase-title: [0]
85vitest/prefer-mock-promise-shorthand: [0]
86vitest/prefer-snapshot-hint: [0]
87vitest/prefer-spy-on: [0]
88vitest/prefer-strict-equal: [0]
89vitest/prefer-to-be: [0]
90vitest/prefer-to-be-falsy: [0]
91vitest/prefer-to-be-object: [0]
92vitest/prefer-to-be-truthy: [0]
93vitest/prefer-to-contain: [0]
94vitest/prefer-to-have-length: [0]
95vitest/prefer-todo: [0]
96vitest/require-hook: [0]
97vitest/require-to-throw-message: [0]
98vitest/require-top-level-describe: [0]
99vitest/valid-describe-callback: [2]
100vitest/valid-expect: [2]
101vitest/valid-title: [2]
102- files: ["web_src/js/modules/fetch.js", "web_src/js/standalone/**/*"]
103rules:
104no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
105
106rules:
107"@eslint-community/eslint-comments/disable-enable-pair": [2]
108"@eslint-community/eslint-comments/no-aggregating-enable": [2]
109"@eslint-community/eslint-comments/no-duplicate-disable": [2]
110"@eslint-community/eslint-comments/no-restricted-disable": [0]
111"@eslint-community/eslint-comments/no-unlimited-disable": [2]
112"@eslint-community/eslint-comments/no-unused-disable": [2]
113"@eslint-community/eslint-comments/no-unused-enable": [2]
114"@eslint-community/eslint-comments/no-use": [0]
115"@eslint-community/eslint-comments/require-description": [0]
116"@stylistic/js/array-bracket-newline": [0]
117"@stylistic/js/array-bracket-spacing": [2, never]
118"@stylistic/js/array-element-newline": [0]
119"@stylistic/js/arrow-parens": [2, always]
120"@stylistic/js/arrow-spacing": [2, {before: true, after: true}]
121"@stylistic/js/block-spacing": [0]
122"@stylistic/js/brace-style": [2, 1tbs, {allowSingleLine: true}]
123"@stylistic/js/comma-dangle": [2, always-multiline]
124"@stylistic/js/comma-spacing": [2, {before: false, after: true}]
125"@stylistic/js/comma-style": [2, last]
126"@stylistic/js/computed-property-spacing": [2, never]
127"@stylistic/js/dot-location": [2, property]
128"@stylistic/js/eol-last": [2]
129"@stylistic/js/function-call-spacing": [2, never]
130"@stylistic/js/function-call-argument-newline": [0]
131"@stylistic/js/function-paren-newline": [0]
132"@stylistic/js/generator-star-spacing": [0]
133"@stylistic/js/implicit-arrow-linebreak": [0]
134"@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}]
135"@stylistic/js/key-spacing": [2]
136"@stylistic/js/keyword-spacing": [2]
137"@stylistic/js/linebreak-style": [2, unix]
138"@stylistic/js/lines-around-comment": [0]
139"@stylistic/js/lines-between-class-members": [0]
140"@stylistic/js/max-len": [0]
141"@stylistic/js/max-statements-per-line": [0]
142"@stylistic/js/multiline-ternary": [0]
143"@stylistic/js/new-parens": [2]
144"@stylistic/js/newline-per-chained-call": [0]
145"@stylistic/js/no-confusing-arrow": [0]
146"@stylistic/js/no-extra-parens": [0]
147"@stylistic/js/no-extra-semi": [2]
148"@stylistic/js/no-floating-decimal": [0]
149"@stylistic/js/no-mixed-operators": [0]
150"@stylistic/js/no-mixed-spaces-and-tabs": [2]
151"@stylistic/js/no-multi-spaces": [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
152"@stylistic/js/no-multiple-empty-lines": [2, {max: 1, maxEOF: 0, maxBOF: 0}]
153"@stylistic/js/no-tabs": [2]
154"@stylistic/js/no-trailing-spaces": [2]
155"@stylistic/js/no-whitespace-before-property": [2]
156"@stylistic/js/nonblock-statement-body-position": [2]
157"@stylistic/js/object-curly-newline": [0]
158"@stylistic/js/object-curly-spacing": [2, never]
159"@stylistic/js/object-property-newline": [0]
160"@stylistic/js/one-var-declaration-per-line": [0]
161"@stylistic/js/operator-linebreak": [2, after]
162"@stylistic/js/padded-blocks": [2, never]
163"@stylistic/js/padding-line-between-statements": [0]
164"@stylistic/js/quote-props": [0]
165"@stylistic/js/quotes": [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
166"@stylistic/js/rest-spread-spacing": [2, never]
167"@stylistic/js/semi": [2, always, {omitLastInOneLineBlock: true}]
168"@stylistic/js/semi-spacing": [2, {before: false, after: true}]
169"@stylistic/js/semi-style": [2, last]
170"@stylistic/js/space-before-blocks": [2, always]
171"@stylistic/js/space-before-function-paren": [2, {anonymous: ignore, named: never, asyncArrow: always}]
172"@stylistic/js/space-in-parens": [2, never]
173"@stylistic/js/space-infix-ops": [2]
174"@stylistic/js/space-unary-ops": [2]
175"@stylistic/js/spaced-comment": [2, always]
176"@stylistic/js/switch-colon-spacing": [2]
177"@stylistic/js/template-curly-spacing": [2, never]
178"@stylistic/js/template-tag-spacing": [2, never]
179"@stylistic/js/wrap-iife": [2, inside]
180"@stylistic/js/wrap-regex": [0]
181"@stylistic/js/yield-star-spacing": [2, after]
182accessor-pairs: [2]
183array-callback-return: [2, {checkForEach: true}]
184array-func/avoid-reverse: [2]
185array-func/from-map: [2]
186array-func/no-unnecessary-this-arg: [2]
187array-func/prefer-array-from: [2]
188array-func/prefer-flat-map: [0] # handled by unicorn/prefer-array-flat-map
189array-func/prefer-flat: [0] # handled by unicorn/prefer-array-flat
190arrow-body-style: [0]
191block-scoped-var: [2]
192camelcase: [0]
193capitalized-comments: [0]
194class-methods-use-this: [0]
195complexity: [0]
196consistent-return: [0]
197consistent-this: [0]
198constructor-super: [2]
199curly: [0]
200default-case-last: [2]
201default-case: [0]
202default-param-last: [0]
203dot-notation: [0]
204eqeqeq: [2]
205for-direction: [2]
206func-name-matching: [2]
207func-names: [0]
208func-style: [0]
209getter-return: [2]
210github/a11y-aria-label-is-well-formatted: [0]
211github/a11y-no-title-attribute: [0]
212github/a11y-no-visually-hidden-interactive-element: [0]
213github/a11y-role-supports-aria-props: [0]
214github/a11y-svg-has-accessible-name: [0]
215github/array-foreach: [0]
216github/async-currenttarget: [2]
217github/async-preventdefault: [2]
218github/authenticity-token: [0]
219github/get-attribute: [0]
220github/js-class-name: [0]
221github/no-blur: [0]
222github/no-d-none: [0]
223github/no-dataset: [2]
224github/no-dynamic-script-tag: [2]
225github/no-implicit-buggy-globals: [2]
226github/no-inner-html: [0]
227github/no-innerText: [2]
228github/no-then: [2]
229github/no-useless-passive: [2]
230github/prefer-observers: [2]
231github/require-passive-events: [2]
232github/unescaped-html-literal: [0]
233grouped-accessor-pairs: [2]
234guard-for-in: [0]
235id-blacklist: [0]
236id-length: [0]
237id-match: [0]
238i/consistent-type-specifier-style: [0]
239i/default: [0]
240i/dynamic-import-chunkname: [0]
241i/export: [2]
242i/exports-last: [0]
243i/extensions: [2, always, {ignorePackages: true}]
244i/first: [2]
245i/group-exports: [0]
246i/max-dependencies: [0]
247i/named: [2]
248i/namespace: [0]
249i/newline-after-import: [0]
250i/no-absolute-path: [0]
251i/no-amd: [2]
252i/no-anonymous-default-export: [0]
253i/no-commonjs: [2]
254i/no-cycle: [2, {ignoreExternal: true, maxDepth: 1}]
255i/no-default-export: [0]
256i/no-deprecated: [0]
257i/no-dynamic-require: [0]
258i/no-empty-named-blocks: [2]
259i/no-extraneous-dependencies: [2]
260i/no-import-module-exports: [0]
261i/no-internal-modules: [0]
262i/no-mutable-exports: [0]
263i/no-named-as-default-member: [0]
264i/no-named-as-default: [2]
265i/no-named-default: [0]
266i/no-named-export: [0]
267i/no-namespace: [0]
268i/no-nodejs-modules: [0]
269i/no-relative-packages: [0]
270i/no-relative-parent-imports: [0]
271i/no-restricted-paths: [0]
272i/no-self-import: [2]
273i/no-unassigned-import: [0]
274i/no-unresolved: [2, {commonjs: true, ignore: ["\\?.+$", ^vitest/]}]
275i/no-unused-modules: [2, {unusedExports: true}]
276i/no-useless-path-segments: [2, {commonjs: true}]
277i/no-webpack-loader-syntax: [2]
278i/order: [0]
279i/prefer-default-export: [0]
280i/unambiguous: [0]
281init-declarations: [0]
282jquery/no-ajax-events: [2]
283jquery/no-ajax: [2]
284jquery/no-animate: [2]
285jquery/no-attr: [2]
286jquery/no-bind: [2]
287jquery/no-class: [0]
288jquery/no-clone: [2]
289jquery/no-closest: [0]
290jquery/no-css: [2]
291jquery/no-data: [0]
292jquery/no-deferred: [2]
293jquery/no-delegate: [2]
294jquery/no-each: [0]
295jquery/no-extend: [2]
296jquery/no-fade: [2]
297jquery/no-filter: [0]
298jquery/no-find: [0]
299jquery/no-global-eval: [2]
300jquery/no-grep: [2]
301jquery/no-has: [2]
302jquery/no-hide: [2]
303jquery/no-html: [0]
304jquery/no-in-array: [2]
305jquery/no-is-array: [2]
306jquery/no-is-function: [2]
307jquery/no-is: [2]
308jquery/no-load: [2]
309jquery/no-map: [2]
310jquery/no-merge: [2]
311jquery/no-param: [2]
312jquery/no-parent: [0]
313jquery/no-parents: [0]
314jquery/no-parse-html: [2]
315jquery/no-prop: [2]
316jquery/no-proxy: [2]
317jquery/no-ready: [2]
318jquery/no-serialize: [2]
319jquery/no-show: [2]
320jquery/no-size: [2]
321jquery/no-sizzle: [2]
322jquery/no-slide: [0]
323jquery/no-submit: [0]
324jquery/no-text: [0]
325jquery/no-toggle: [2]
326jquery/no-trigger: [0]
327jquery/no-trim: [2]
328jquery/no-val: [0]
329jquery/no-when: [2]
330jquery/no-wrap: [2]
331line-comment-position: [0]
332logical-assignment-operators: [0]
333max-classes-per-file: [0]
334max-depth: [0]
335max-lines-per-function: [0]
336max-lines: [0]
337max-nested-callbacks: [0]
338max-params: [0]
339max-statements: [0]
340multiline-comment-style: [2, separate-lines]
341new-cap: [0]
342no-alert: [0]
343no-array-constructor: [2]
344no-async-promise-executor: [0]
345no-await-in-loop: [0]
346no-bitwise: [0]
347no-buffer-constructor: [0]
348no-caller: [2]
349no-case-declarations: [2]
350no-class-assign: [2]
351no-compare-neg-zero: [2]
352no-cond-assign: [2, except-parens]
353no-console: [1, {allow: [debug, info, warn, error]}]
354no-const-assign: [2]
355no-constant-binary-expression: [2]
356no-constant-condition: [0]
357no-constructor-return: [2]
358no-continue: [0]
359no-control-regex: [0]
360no-debugger: [1]
361no-delete-var: [2]
362no-div-regex: [0]
363no-dupe-args: [2]
364no-dupe-class-members: [2]
365no-dupe-else-if: [2]
366no-dupe-keys: [2]
367no-duplicate-case: [2]
368no-duplicate-imports: [2]
369no-else-return: [2]
370no-empty-character-class: [2]
371no-empty-function: [0]
372no-empty-pattern: [2]
373no-empty-static-block: [2]
374no-empty: [2, {allowEmptyCatch: true}]
375no-eq-null: [2]
376no-eval: [2]
377no-ex-assign: [2]
378no-extend-native: [2]
379no-extra-bind: [2]
380no-extra-boolean-cast: [2]
381no-extra-label: [0]
382no-fallthrough: [2]
383no-func-assign: [2]
384no-global-assign: [2]
385no-implicit-coercion: [2]
386no-implicit-globals: [0]
387no-implied-eval: [2]
388no-import-assign: [2]
389no-inline-comments: [0]
390no-inner-declarations: [2]
391no-invalid-regexp: [2]
392no-invalid-this: [0]
393no-irregular-whitespace: [2]
394no-iterator: [2]
395no-jquery/no-ajax-events: [2]
396no-jquery/no-ajax: [2]
397no-jquery/no-and-self: [2]
398no-jquery/no-animate-toggle: [2]
399no-jquery/no-animate: [2]
400no-jquery/no-append-html: [2]
401no-jquery/no-attr: [2]
402no-jquery/no-bind: [2]
403no-jquery/no-box-model: [2]
404no-jquery/no-browser: [2]
405no-jquery/no-camel-case: [2]
406no-jquery/no-class-state: [0]
407no-jquery/no-class: [0]
408no-jquery/no-clone: [2]
409no-jquery/no-closest: [0]
410no-jquery/no-constructor-attributes: [2]
411no-jquery/no-contains: [2]
412no-jquery/no-context-prop: [2]
413no-jquery/no-css: [2]
414no-jquery/no-data: [0]
415no-jquery/no-deferred: [2]
416no-jquery/no-delegate: [2]
417no-jquery/no-each-collection: [0]
418no-jquery/no-each-util: [0]
419no-jquery/no-each: [0]
420no-jquery/no-error-shorthand: [2]
421no-jquery/no-error: [2]
422no-jquery/no-escape-selector: [2]
423no-jquery/no-event-shorthand: [2]
424no-jquery/no-extend: [2]
425no-jquery/no-fade: [2]
426no-jquery/no-filter: [0]
427no-jquery/no-find-collection: [0]
428no-jquery/no-find-util: [2]
429no-jquery/no-find: [0]
430no-jquery/no-fx-interval: [2]
431no-jquery/no-global-eval: [2]
432no-jquery/no-global-selector: [0]
433no-jquery/no-grep: [2]
434no-jquery/no-has: [2]
435no-jquery/no-hold-ready: [2]
436no-jquery/no-html: [0]
437no-jquery/no-in-array: [2]
438no-jquery/no-is-array: [2]
439no-jquery/no-is-empty-object: [2]
440no-jquery/no-is-function: [2]
441no-jquery/no-is-numeric: [2]
442no-jquery/no-is-plain-object: [2]
443no-jquery/no-is-window: [2]
444no-jquery/no-is: [2]
445no-jquery/no-jquery-constructor: [0]
446no-jquery/no-live: [2]
447no-jquery/no-load-shorthand: [2]
448no-jquery/no-load: [2]
449no-jquery/no-map-collection: [0]
450no-jquery/no-map-util: [2]
451no-jquery/no-map: [2]
452no-jquery/no-merge: [2]
453no-jquery/no-node-name: [2]
454no-jquery/no-noop: [2]
455no-jquery/no-now: [2]
456no-jquery/no-on-ready: [2]
457no-jquery/no-other-methods: [0]
458no-jquery/no-other-utils: [2]
459no-jquery/no-param: [2]
460no-jquery/no-parent: [0]
461no-jquery/no-parents: [0]
462no-jquery/no-parse-html-literal: [0]
463no-jquery/no-parse-html: [2]
464no-jquery/no-parse-json: [2]
465no-jquery/no-parse-xml: [2]
466no-jquery/no-prop: [2]
467no-jquery/no-proxy: [2]
468no-jquery/no-ready-shorthand: [2]
469no-jquery/no-ready: [2]
470no-jquery/no-selector-prop: [2]
471no-jquery/no-serialize: [2]
472no-jquery/no-size: [2]
473no-jquery/no-sizzle: [2]
474no-jquery/no-slide: [2]
475no-jquery/no-sub: [2]
476no-jquery/no-support: [2]
477no-jquery/no-text: [0]
478no-jquery/no-trigger: [0]
479no-jquery/no-trim: [2]
480no-jquery/no-type: [2]
481no-jquery/no-unique: [2]
482no-jquery/no-unload-shorthand: [2]
483no-jquery/no-val: [0]
484no-jquery/no-visibility: [2]
485no-jquery/no-when: [2]
486no-jquery/no-wrap: [2]
487no-jquery/variable-pattern: [2]
488no-label-var: [2]
489no-labels: [0] # handled by no-restricted-syntax
490no-lone-blocks: [2]
491no-lonely-if: [0]
492no-loop-func: [0]
493no-loss-of-precision: [2]
494no-magic-numbers: [0]
495no-misleading-character-class: [2]
496no-multi-assign: [0]
497no-multi-str: [2]
498no-negated-condition: [0]
499no-nested-ternary: [0]
500no-new-func: [2]
501no-new-native-nonconstructor: [2]
502no-new-object: [2]
503no-new-symbol: [2]
504no-new-wrappers: [2]
505no-new: [0]
506no-nonoctal-decimal-escape: [2]
507no-obj-calls: [2]
508no-octal-escape: [2]
509no-octal: [2]
510no-param-reassign: [0]
511no-plusplus: [0]
512no-promise-executor-return: [0]
513no-proto: [2]
514no-prototype-builtins: [2]
515no-redeclare: [2]
516no-regex-spaces: [2]
517no-restricted-exports: [0]
518no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, location, locationbar, menubar, moveBy, moveTo, name, onblur, onerror, onfocus, onload, onresize, onunload, open, opener, opera, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, print, removeEventListener, resizeBy, resizeTo, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollbars, scrollBy, scrollTo, scrollX, scrollY, self, status, statusbar, stop, toolbar, top, __dirname, __filename]
519no-restricted-imports: [0]
520no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression, {selector: "CallExpression[callee.name='fetch']", message: "use modules/fetch.js instead"}]
521no-return-assign: [0]
522no-script-url: [2]
523no-self-assign: [2, {props: true}]
524no-self-compare: [2]
525no-sequences: [2]
526no-setter-return: [2]
527no-shadow-restricted-names: [2]
528no-shadow: [0]
529no-sparse-arrays: [2]
530no-template-curly-in-string: [2]
531no-ternary: [0]
532no-this-before-super: [2]
533no-throw-literal: [2]
534no-undef-init: [2]
535no-undef: [2, {typeof: true}]
536no-undefined: [0]
537no-underscore-dangle: [0]
538no-unexpected-multiline: [2]
539no-unmodified-loop-condition: [2]
540no-unneeded-ternary: [2]
541no-unreachable-loop: [2]
542no-unreachable: [2]
543no-unsafe-finally: [2]
544no-unsafe-negation: [2]
545no-unused-expressions: [2]
546no-unused-labels: [2]
547no-unused-private-class-members: [2]
548no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, destructuredArrayIgnorePattern: ^_, ignoreRestSiblings: false}]
549no-use-before-define: [2, {functions: false, classes: true, variables: true, allowNamedExports: true}]
550no-use-extend-native/no-use-extend-native: [2]
551no-useless-backreference: [2]
552no-useless-call: [2]
553no-useless-catch: [2]
554no-useless-computed-key: [2]
555no-useless-concat: [2]
556no-useless-constructor: [2]
557no-useless-escape: [2]
558no-useless-rename: [2]
559no-useless-return: [2]
560no-var: [2]
561no-void: [2]
562no-warning-comments: [0]
563no-with: [0] # handled by no-restricted-syntax
564object-shorthand: [2, always]
565one-var-declaration-per-line: [0]
566one-var: [0]
567operator-assignment: [2, always]
568operator-linebreak: [2, after]
569prefer-arrow-callback: [2, {allowNamedFunctions: true, allowUnboundThis: true}]
570prefer-const: [2, {destructuring: all, ignoreReadBeforeAssign: true}]
571prefer-destructuring: [0]
572prefer-exponentiation-operator: [2]
573prefer-named-capture-group: [0]
574prefer-numeric-literals: [2]
575prefer-object-has-own: [2]
576prefer-object-spread: [2]
577prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
578prefer-regex-literals: [2]
579prefer-rest-params: [2]
580prefer-spread: [2]
581prefer-template: [2]
582radix: [2, as-needed]
583regexp/confusing-quantifier: [2]
584regexp/control-character-escape: [2]
585regexp/hexadecimal-escape: [0]
586regexp/letter-case: [0]
587regexp/match-any: [2]
588regexp/negation: [2]
589regexp/no-contradiction-with-assertion: [0]
590regexp/no-control-character: [0]
591regexp/no-dupe-characters-character-class: [2]
592regexp/no-dupe-disjunctions: [2]
593regexp/no-empty-alternative: [2]
594regexp/no-empty-capturing-group: [2]
595regexp/no-empty-character-class: [0]
596regexp/no-empty-group: [2]
597regexp/no-empty-lookarounds-assertion: [2]
598regexp/no-empty-string-literal: [2]
599regexp/no-escape-backspace: [2]
600regexp/no-extra-lookaround-assertions: [0]
601regexp/no-invalid-regexp: [2]
602regexp/no-invisible-character: [2]
603regexp/no-lazy-ends: [2]
604regexp/no-legacy-features: [2]
605regexp/no-misleading-capturing-group: [0]
606regexp/no-misleading-unicode-character: [0]
607regexp/no-missing-g-flag: [2]
608regexp/no-non-standard-flag: [2]
609regexp/no-obscure-range: [2]
610regexp/no-octal: [2]
611regexp/no-optional-assertion: [2]
612regexp/no-potentially-useless-backreference: [2]
613regexp/no-standalone-backslash: [2]
614regexp/no-super-linear-backtracking: [0]
615regexp/no-super-linear-move: [0]
616regexp/no-trivially-nested-assertion: [2]
617regexp/no-trivially-nested-quantifier: [2]
618regexp/no-unused-capturing-group: [0]
619regexp/no-useless-assertions: [2]
620regexp/no-useless-backreference: [2]
621regexp/no-useless-character-class: [2]
622regexp/no-useless-dollar-replacements: [2]
623regexp/no-useless-escape: [2]
624regexp/no-useless-flag: [2]
625regexp/no-useless-lazy: [2]
626regexp/no-useless-non-capturing-group: [2]
627regexp/no-useless-quantifier: [2]
628regexp/no-useless-range: [2]
629regexp/no-useless-set-operand: [2]
630regexp/no-useless-string-literal: [2]
631regexp/no-useless-two-nums-quantifier: [2]
632regexp/no-zero-quantifier: [2]
633regexp/optimal-lookaround-quantifier: [2]
634regexp/optimal-quantifier-concatenation: [0]
635regexp/prefer-character-class: [0]
636regexp/prefer-d: [0]
637regexp/prefer-escape-replacement-dollar-char: [0]
638regexp/prefer-lookaround: [0]
639regexp/prefer-named-backreference: [0]
640regexp/prefer-named-capture-group: [0]
641regexp/prefer-named-replacement: [0]
642regexp/prefer-plus-quantifier: [2]
643regexp/prefer-predefined-assertion: [2]
644regexp/prefer-quantifier: [0]
645regexp/prefer-question-quantifier: [2]
646regexp/prefer-range: [2]
647regexp/prefer-regexp-exec: [2]
648regexp/prefer-regexp-test: [2]
649regexp/prefer-result-array-groups: [0]
650regexp/prefer-set-operation: [2]
651regexp/prefer-star-quantifier: [2]
652regexp/prefer-unicode-codepoint-escapes: [2]
653regexp/prefer-w: [0]
654regexp/require-unicode-regexp: [0]
655regexp/simplify-set-operations: [2]
656regexp/sort-alternatives: [0]
657regexp/sort-character-class-elements: [0]
658regexp/sort-flags: [0]
659regexp/strict: [2]
660regexp/unicode-escape: [0]
661regexp/use-ignore-case: [0]
662require-atomic-updates: [0]
663require-await: [0]
664require-unicode-regexp: [0]
665require-yield: [2]
666sonarjs/cognitive-complexity: [0]
667sonarjs/elseif-without-else: [0]
668sonarjs/max-switch-cases: [0]
669sonarjs/no-all-duplicated-branches: [2]
670sonarjs/no-collapsible-if: [0]
671sonarjs/no-collection-size-mischeck: [2]
672sonarjs/no-duplicate-string: [0]
673sonarjs/no-duplicated-branches: [0]
674sonarjs/no-element-overwrite: [2]
675sonarjs/no-empty-collection: [2]
676sonarjs/no-extra-arguments: [2]
677sonarjs/no-gratuitous-expressions: [2]
678sonarjs/no-identical-conditions: [2]
679sonarjs/no-identical-expressions: [2]
680sonarjs/no-identical-functions: [2, 5]
681sonarjs/no-ignored-return: [2]
682sonarjs/no-inverted-boolean-check: [2]
683sonarjs/no-nested-switch: [0]
684sonarjs/no-nested-template-literals: [0]
685sonarjs/no-one-iteration-loop: [2]
686sonarjs/no-redundant-boolean: [2]
687sonarjs/no-redundant-jump: [2]
688sonarjs/no-same-line-conditional: [2]
689sonarjs/no-small-switch: [0]
690sonarjs/no-unused-collection: [2]
691sonarjs/no-use-of-empty-return-value: [2]
692sonarjs/no-useless-catch: [2]
693sonarjs/non-existent-operator: [2]
694sonarjs/prefer-immediate-return: [0]
695sonarjs/prefer-object-literal: [0]
696sonarjs/prefer-single-boolean-return: [0]
697sonarjs/prefer-while: [2]
698sort-imports: [0]
699sort-keys: [0]
700sort-vars: [0]
701strict: [0]
702symbol-description: [2]
703unicode-bom: [2, never]
704unicorn/better-regex: [0]
705unicorn/catch-error-name: [0]
706unicorn/consistent-destructuring: [2]
707unicorn/consistent-function-scoping: [2]
708unicorn/custom-error-definition: [0]
709unicorn/empty-brace-spaces: [2]
710unicorn/error-message: [0]
711unicorn/escape-case: [0]
712unicorn/expiring-todo-comments: [0]
713unicorn/explicit-length-check: [0]
714unicorn/filename-case: [0]
715unicorn/import-index: [0]
716unicorn/import-style: [0]
717unicorn/new-for-builtins: [2]
718unicorn/no-abusive-eslint-disable: [0]
719unicorn/no-anonymous-default-export: [0]
720unicorn/no-array-callback-reference: [0]
721unicorn/no-array-for-each: [2]
722unicorn/no-array-method-this-argument: [2]
723unicorn/no-array-push-push: [2]
724unicorn/no-array-reduce: [2]
725unicorn/no-await-expression-member: [0]
726unicorn/no-await-in-promise-methods: [2]
727unicorn/no-console-spaces: [0]
728unicorn/no-document-cookie: [2]
729unicorn/no-empty-file: [2]
730unicorn/no-for-loop: [0]
731unicorn/no-hex-escape: [0]
732unicorn/no-instanceof-array: [0]
733unicorn/no-invalid-remove-event-listener: [2]
734unicorn/no-keyword-prefix: [0]
735unicorn/no-lonely-if: [2]
736unicorn/no-negated-condition: [0]
737unicorn/no-nested-ternary: [0]
738unicorn/no-new-array: [0]
739unicorn/no-new-buffer: [0]
740unicorn/no-null: [0]
741unicorn/no-object-as-default-parameter: [0]
742unicorn/no-process-exit: [0]
743unicorn/no-single-promise-in-promise-methods: [2]
744unicorn/no-static-only-class: [2]
745unicorn/no-thenable: [2]
746unicorn/no-this-assignment: [2]
747unicorn/no-typeof-undefined: [2]
748unicorn/no-unnecessary-await: [2]
749unicorn/no-unnecessary-polyfills: [2]
750unicorn/no-unreadable-array-destructuring: [0]
751unicorn/no-unreadable-iife: [2]
752unicorn/no-unused-properties: [2]
753unicorn/no-useless-fallback-in-spread: [2]
754unicorn/no-useless-length-check: [2]
755unicorn/no-useless-promise-resolve-reject: [2]
756unicorn/no-useless-spread: [2]
757unicorn/no-useless-switch-case: [2]
758unicorn/no-useless-undefined: [0]
759unicorn/no-zero-fractions: [2]
760unicorn/number-literal-case: [0]
761unicorn/numeric-separators-style: [0]
762unicorn/prefer-add-event-listener: [2]
763unicorn/prefer-array-find: [2]
764unicorn/prefer-array-flat-map: [2]
765unicorn/prefer-array-flat: [2]
766unicorn/prefer-array-index-of: [2]
767unicorn/prefer-array-some: [2]
768unicorn/prefer-at: [0]
769unicorn/prefer-blob-reading-methods: [2]
770unicorn/prefer-code-point: [0]
771unicorn/prefer-date-now: [2]
772unicorn/prefer-default-parameters: [0]
773unicorn/prefer-dom-node-append: [2]
774unicorn/prefer-dom-node-dataset: [0]
775unicorn/prefer-dom-node-remove: [2]
776unicorn/prefer-dom-node-text-content: [2]
777unicorn/prefer-event-target: [2]
778unicorn/prefer-export-from: [0]
779unicorn/prefer-includes: [2]
780unicorn/prefer-json-parse-buffer: [0]
781unicorn/prefer-keyboard-event-key: [2]
782unicorn/prefer-logical-operator-over-ternary: [2]
783unicorn/prefer-math-trunc: [2]
784unicorn/prefer-modern-dom-apis: [0]
785unicorn/prefer-modern-math-apis: [2]
786unicorn/prefer-module: [2]
787unicorn/prefer-native-coercion-functions: [2]
788unicorn/prefer-negative-index: [2]
789unicorn/prefer-node-protocol: [2]
790unicorn/prefer-number-properties: [0]
791unicorn/prefer-object-from-entries: [2]
792unicorn/prefer-object-has-own: [0]
793unicorn/prefer-optional-catch-binding: [2]
794unicorn/prefer-prototype-methods: [0]
795unicorn/prefer-query-selector: [0]
796unicorn/prefer-reflect-apply: [0]
797unicorn/prefer-regexp-test: [2]
798unicorn/prefer-set-has: [0]
799unicorn/prefer-set-size: [2]
800unicorn/prefer-spread: [0]
801unicorn/prefer-string-replace-all: [0]
802unicorn/prefer-string-slice: [0]
803unicorn/prefer-string-starts-ends-with: [2]
804unicorn/prefer-string-trim-start-end: [2]
805unicorn/prefer-switch: [0]
806unicorn/prefer-ternary: [0]
807unicorn/prefer-text-content: [2]
808unicorn/prefer-top-level-await: [0]
809unicorn/prefer-type-error: [0]
810unicorn/prevent-abbreviations: [0]
811unicorn/relative-url-style: [2]
812unicorn/require-array-join-separator: [2]
813unicorn/require-number-to-fixed-digits-argument: [2]
814unicorn/require-post-message-target-origin: [0]
815unicorn/string-content: [0]
816unicorn/switch-case-braces: [0]
817unicorn/template-indent: [2]
818unicorn/text-encoding-identifier-case: [0]
819unicorn/throw-new-error: [2]
820use-isnan: [2]
821valid-typeof: [2, {requireStringLiterals: true}]
822vars-on-top: [0]
823wc/attach-shadow-constructor: [2]
824wc/define-tag-after-class-definition: [0]
825wc/expose-class-on-global: [0]
826wc/file-name-matches-element: [2]
827wc/guard-define-call: [0]
828wc/guard-super-call: [2]
829wc/max-elements-per-file: [0]
830wc/no-child-traversal-in-attributechangedcallback: [2]
831wc/no-child-traversal-in-connectedcallback: [2]
832wc/no-closed-shadow-root: [2]
833wc/no-constructor-attributes: [2]
834wc/no-constructor-params: [2]
835wc/no-constructor: [2]
836wc/no-customized-built-in-elements: [2]
837wc/no-exports-with-element: [0]
838wc/no-invalid-element-name: [2]
839wc/no-invalid-extends: [2]
840wc/no-method-prefixed-with-on: [2]
841wc/no-self-class: [2]
842wc/no-typos: [2]
843wc/require-listener-teardown: [2]
844wc/tag-name-matches-class: [2]
845yoda: [2, never]
846