Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

.eslintrc.yaml 25KB

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