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 28KB

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