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

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