You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.yaml 24KB

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