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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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-plugin-unicorn
  10. - eslint-plugin-import
  11. - eslint-plugin-jquery
  12. - eslint-plugin-sonarjs
  13. env:
  14. es2022: true
  15. node: true
  16. globals:
  17. __webpack_public_path__: true
  18. overrides:
  19. - files: ["web_src/**/*.js", "docs/**/*.js"]
  20. env:
  21. browser: true
  22. node: false
  23. - files: ["web_src/**/*worker.js"]
  24. env:
  25. worker: true
  26. rules:
  27. 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]
  28. - files: ["build/generate-images.js"]
  29. rules:
  30. import/no-unresolved: [0]
  31. import/no-extraneous-dependencies: [0]
  32. - files: ["*.config.js"]
  33. rules:
  34. import/no-unused-modules: [0]
  35. rules:
  36. accessor-pairs: [2]
  37. array-bracket-newline: [0]
  38. array-bracket-spacing: [2, never]
  39. array-callback-return: [2, {checkForEach: true}]
  40. array-element-newline: [0]
  41. arrow-body-style: [0]
  42. arrow-parens: [2, always]
  43. arrow-spacing: [2, {before: true, after: true}]
  44. block-scoped-var: [2]
  45. brace-style: [2, 1tbs, {allowSingleLine: true}]
  46. camelcase: [0]
  47. capitalized-comments: [0]
  48. class-methods-use-this: [0]
  49. comma-dangle: [2, only-multiline]
  50. comma-spacing: [2, {before: false, after: true}]
  51. comma-style: [2, last]
  52. complexity: [0]
  53. computed-property-spacing: [2, never]
  54. consistent-return: [0]
  55. consistent-this: [0]
  56. constructor-super: [2]
  57. curly: [0]
  58. default-case-last: [2]
  59. default-case: [0]
  60. default-param-last: [0]
  61. dot-location: [2, property]
  62. dot-notation: [0]
  63. eol-last: [2]
  64. eqeqeq: [2]
  65. for-direction: [2]
  66. func-call-spacing: [2, never]
  67. func-name-matching: [2]
  68. func-names: [0]
  69. func-style: [0]
  70. function-call-argument-newline: [0]
  71. function-paren-newline: [0]
  72. generator-star-spacing: [0]
  73. getter-return: [2]
  74. grouped-accessor-pairs: [2]
  75. guard-for-in: [0]
  76. id-blacklist: [0]
  77. id-length: [0]
  78. id-match: [0]
  79. implicit-arrow-linebreak: [0]
  80. import/consistent-type-specifier-style: [0]
  81. import/default: [0]
  82. import/dynamic-import-chunkname: [0]
  83. import/export: [2]
  84. import/exports-last: [0]
  85. import/extensions: [2, always, {ignorePackages: true}]
  86. import/first: [2]
  87. import/group-exports: [0]
  88. import/max-dependencies: [0]
  89. import/named: [2]
  90. import/namespace: [0]
  91. import/newline-after-import: [0]
  92. import/no-absolute-path: [0]
  93. import/no-amd: [0]
  94. import/no-anonymous-default-export: [0]
  95. import/no-commonjs: [0]
  96. import/no-cycle: [2, {ignoreExternal: true, maxDepth: 1}]
  97. import/no-default-export: [0]
  98. import/no-deprecated: [0]
  99. import/no-dynamic-require: [0]
  100. import/no-empty-named-blocks: [2]
  101. import/no-extraneous-dependencies: [2]
  102. import/no-import-module-exports: [0]
  103. import/no-internal-modules: [0]
  104. import/no-mutable-exports: [0]
  105. import/no-named-as-default-member: [0]
  106. import/no-named-as-default: [2]
  107. import/no-named-default: [0]
  108. import/no-named-export: [0]
  109. import/no-namespace: [0]
  110. import/no-nodejs-modules: [0]
  111. import/no-relative-packages: [0]
  112. import/no-relative-parent-imports: [0]
  113. import/no-restricted-paths: [0]
  114. import/no-self-import: [2]
  115. import/no-unassigned-import: [0]
  116. import/no-unresolved: [2, {commonjs: true, ignore: ["\\?.+$"]}]
  117. import/no-unused-modules: [2, {unusedExports: true}]
  118. import/no-useless-path-segments: [2, {commonjs: true}]
  119. import/no-webpack-loader-syntax: [2]
  120. import/order: [0]
  121. import/prefer-default-export: [0]
  122. import/unambiguous: [0]
  123. indent: [2, 2, {SwitchCase: 1}]
  124. init-declarations: [0]
  125. jquery/no-ajax-events: [2]
  126. jquery/no-ajax: [0]
  127. jquery/no-animate: [2]
  128. jquery/no-attr: [0]
  129. jquery/no-bind: [2]
  130. jquery/no-class: [0]
  131. jquery/no-clone: [2]
  132. jquery/no-closest: [0]
  133. jquery/no-css: [0]
  134. jquery/no-data: [0]
  135. jquery/no-deferred: [2]
  136. jquery/no-delegate: [2]
  137. jquery/no-each: [0]
  138. jquery/no-extend: [2]
  139. jquery/no-fade: [0]
  140. jquery/no-filter: [0]
  141. jquery/no-find: [0]
  142. jquery/no-global-eval: [2]
  143. jquery/no-grep: [2]
  144. jquery/no-has: [2]
  145. jquery/no-hide: [0]
  146. jquery/no-html: [0]
  147. jquery/no-in-array: [2]
  148. jquery/no-is-array: [2]
  149. jquery/no-is-function: [2]
  150. jquery/no-is: [0]
  151. jquery/no-load: [2]
  152. jquery/no-map: [0]
  153. jquery/no-merge: [2]
  154. jquery/no-param: [2]
  155. jquery/no-parent: [0]
  156. jquery/no-parents: [0]
  157. jquery/no-parse-html: [2]
  158. jquery/no-prop: [0]
  159. jquery/no-proxy: [2]
  160. jquery/no-ready: [0]
  161. jquery/no-serialize: [2]
  162. jquery/no-show: [0]
  163. jquery/no-size: [2]
  164. jquery/no-sizzle: [0]
  165. jquery/no-slide: [0]
  166. jquery/no-submit: [0]
  167. jquery/no-text: [0]
  168. jquery/no-toggle: [0]
  169. jquery/no-trigger: [0]
  170. jquery/no-trim: [2]
  171. jquery/no-val: [0]
  172. jquery/no-when: [2]
  173. jquery/no-wrap: [2]
  174. key-spacing: [2]
  175. keyword-spacing: [2]
  176. line-comment-position: [0]
  177. linebreak-style: [2, unix]
  178. lines-around-comment: [0]
  179. lines-between-class-members: [0]
  180. logical-assignment-operators: [0]
  181. max-classes-per-file: [0]
  182. max-depth: [0]
  183. max-len: [0]
  184. max-lines-per-function: [0]
  185. max-lines: [0]
  186. max-nested-callbacks: [0]
  187. max-params: [0]
  188. max-statements-per-line: [0]
  189. max-statements: [0]
  190. multiline-comment-style: [2, separate-lines]
  191. multiline-ternary: [0]
  192. new-cap: [0]
  193. new-parens: [2]
  194. newline-per-chained-call: [0]
  195. no-alert: [0]
  196. no-array-constructor: [2]
  197. no-async-promise-executor: [0]
  198. no-await-in-loop: [0]
  199. no-bitwise: [0]
  200. no-buffer-constructor: [0]
  201. no-caller: [2]
  202. no-case-declarations: [2]
  203. no-class-assign: [2]
  204. no-compare-neg-zero: [2]
  205. no-cond-assign: [2, except-parens]
  206. no-confusing-arrow: [0]
  207. no-console: [1, {allow: [debug, info, warn, error]}]
  208. no-const-assign: [2]
  209. no-constant-binary-expression: [2]
  210. no-constant-condition: [0]
  211. no-constructor-return: [2]
  212. no-continue: [0]
  213. no-control-regex: [0]
  214. no-debugger: [1]
  215. no-delete-var: [2]
  216. no-div-regex: [0]
  217. no-dupe-args: [2]
  218. no-dupe-class-members: [2]
  219. no-dupe-else-if: [2]
  220. no-dupe-keys: [2]
  221. no-duplicate-case: [2]
  222. no-duplicate-imports: [2]
  223. no-else-return: [2]
  224. no-empty-character-class: [2]
  225. no-empty-function: [0]
  226. no-empty-pattern: [2]
  227. no-empty-static-block: [2]
  228. no-empty: [2, {allowEmptyCatch: true}]
  229. no-eq-null: [2]
  230. no-eval: [2]
  231. no-ex-assign: [2]
  232. no-extend-native: [2]
  233. no-extra-bind: [2]
  234. no-extra-boolean-cast: [2]
  235. no-extra-label: [0]
  236. no-extra-parens: [0]
  237. no-extra-semi: [2]
  238. no-fallthrough: [2]
  239. no-floating-decimal: [0]
  240. no-func-assign: [2]
  241. no-global-assign: [2]
  242. no-implicit-coercion: [2]
  243. no-implicit-globals: [0]
  244. no-implied-eval: [2]
  245. no-import-assign: [2]
  246. no-inline-comments: [0]
  247. no-inner-declarations: [2]
  248. no-invalid-regexp: [2]
  249. no-invalid-this: [0]
  250. no-irregular-whitespace: [2]
  251. no-iterator: [2]
  252. no-label-var: [2]
  253. no-labels: [0] # handled by no-restricted-syntax
  254. no-lone-blocks: [2]
  255. no-lonely-if: [0]
  256. no-loop-func: [0]
  257. no-loss-of-precision: [2]
  258. no-magic-numbers: [0]
  259. no-misleading-character-class: [2]
  260. no-mixed-operators: [0]
  261. no-mixed-spaces-and-tabs: [2]
  262. no-multi-assign: [0]
  263. no-multi-spaces: [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
  264. no-multi-str: [2]
  265. no-negated-condition: [0]
  266. no-nested-ternary: [0]
  267. no-new-func: [2]
  268. no-new-native-nonconstructor: [2]
  269. no-new-object: [2]
  270. no-new-symbol: [2]
  271. no-new-wrappers: [2]
  272. no-new: [0]
  273. no-nonoctal-decimal-escape: [2]
  274. no-obj-calls: [2]
  275. no-octal-escape: [2]
  276. no-octal: [2]
  277. no-param-reassign: [0]
  278. no-plusplus: [0]
  279. no-promise-executor-return: [0]
  280. no-proto: [2]
  281. no-prototype-builtins: [2]
  282. no-redeclare: [2]
  283. no-regex-spaces: [2]
  284. no-restricted-exports: [0]
  285. 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]
  286. no-restricted-imports: [0]
  287. no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement]
  288. no-return-assign: [0]
  289. no-return-await: [0]
  290. no-script-url: [2]
  291. no-self-assign: [2, {props: true}]
  292. no-self-compare: [2]
  293. no-sequences: [2]
  294. no-setter-return: [2]
  295. no-shadow-restricted-names: [2]
  296. no-shadow: [0]
  297. no-sparse-arrays: [2]
  298. no-tabs: [2]
  299. no-template-curly-in-string: [2]
  300. no-ternary: [0]
  301. no-this-before-super: [2]
  302. no-throw-literal: [2]
  303. no-trailing-spaces: [2]
  304. no-undef-init: [2]
  305. no-undef: [2, {typeof: true}]
  306. no-undefined: [0]
  307. no-underscore-dangle: [0]
  308. no-unexpected-multiline: [2]
  309. no-unmodified-loop-condition: [2]
  310. no-unneeded-ternary: [0]
  311. no-unreachable-loop: [2]
  312. no-unreachable: [2]
  313. no-unsafe-finally: [2]
  314. no-unsafe-negation: [2]
  315. no-unused-expressions: [2]
  316. no-unused-labels: [2]
  317. no-unused-private-class-members: [2]
  318. no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, destructuredArrayIgnorePattern: ^_, ignoreRestSiblings: false}]
  319. no-use-before-define: [2, {functions: false, classes: true, variables: true, allowNamedExports: true}]
  320. no-useless-backreference: [2]
  321. no-useless-call: [2]
  322. no-useless-catch: [2]
  323. no-useless-computed-key: [2]
  324. no-useless-concat: [2]
  325. no-useless-constructor: [2]
  326. no-useless-escape: [2]
  327. no-useless-rename: [2]
  328. no-useless-return: [2]
  329. no-var: [2]
  330. no-void: [2]
  331. no-warning-comments: [0]
  332. no-whitespace-before-property: [2]
  333. no-with: [0] # handled by no-restricted-syntax
  334. nonblock-statement-body-position: [2]
  335. object-curly-newline: [0]
  336. object-curly-spacing: [2, never]
  337. object-shorthand: [2, always]
  338. one-var-declaration-per-line: [0]
  339. one-var: [0]
  340. operator-assignment: [2, always]
  341. operator-linebreak: [2, after]
  342. padded-blocks: [2, never]
  343. padding-line-between-statements: [0]
  344. prefer-arrow-callback: [2, {allowNamedFunctions: true, allowUnboundThis: true}]
  345. prefer-const: [2, {destructuring: all, ignoreReadBeforeAssign: true}]
  346. prefer-destructuring: [0]
  347. prefer-exponentiation-operator: [2]
  348. prefer-named-capture-group: [0]
  349. prefer-numeric-literals: [2]
  350. prefer-object-has-own: [0]
  351. prefer-object-spread: [2]
  352. prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
  353. prefer-regex-literals: [2]
  354. prefer-rest-params: [2]
  355. prefer-spread: [2]
  356. prefer-template: [2]
  357. quote-props: [0]
  358. quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
  359. radix: [2, as-needed]
  360. require-atomic-updates: [0]
  361. require-await: [0]
  362. require-unicode-regexp: [0]
  363. require-yield: [2]
  364. rest-spread-spacing: [2, never]
  365. semi-spacing: [2, {before: false, after: true}]
  366. semi-style: [2, last]
  367. semi: [2, always, {omitLastInOneLineBlock: true}]
  368. sonarjs/cognitive-complexity: [0]
  369. sonarjs/elseif-without-else: [0]
  370. sonarjs/max-switch-cases: [0]
  371. sonarjs/no-all-duplicated-branches: [2]
  372. sonarjs/no-collapsible-if: [0]
  373. sonarjs/no-collection-size-mischeck: [2]
  374. sonarjs/no-duplicate-string: [0]
  375. sonarjs/no-duplicated-branches: [0]
  376. sonarjs/no-element-overwrite: [2]
  377. sonarjs/no-empty-collection: [2]
  378. sonarjs/no-extra-arguments: [2]
  379. sonarjs/no-gratuitous-expressions: [2]
  380. sonarjs/no-identical-conditions: [2]
  381. sonarjs/no-identical-expressions: [2]
  382. sonarjs/no-identical-functions: [2, 5]
  383. sonarjs/no-ignored-return: [2]
  384. sonarjs/no-inverted-boolean-check: [2]
  385. sonarjs/no-nested-switch: [0]
  386. sonarjs/no-nested-template-literals: [0]
  387. sonarjs/no-one-iteration-loop: [2]
  388. sonarjs/no-redundant-boolean: [2]
  389. sonarjs/no-redundant-jump: [0]
  390. sonarjs/no-same-line-conditional: [2]
  391. sonarjs/no-small-switch: [0]
  392. sonarjs/no-unused-collection: [2]
  393. sonarjs/no-use-of-empty-return-value: [2]
  394. sonarjs/no-useless-catch: [2]
  395. sonarjs/non-existent-operator: [2]
  396. sonarjs/prefer-immediate-return: [0]
  397. sonarjs/prefer-object-literal: [0]
  398. sonarjs/prefer-single-boolean-return: [0]
  399. sonarjs/prefer-while: [2]
  400. sort-imports: [0]
  401. sort-keys: [0]
  402. sort-vars: [0]
  403. space-before-blocks: [2, always]
  404. space-in-parens: [2, never]
  405. space-infix-ops: [2]
  406. space-unary-ops: [2]
  407. spaced-comment: [2, always]
  408. strict: [0]
  409. switch-colon-spacing: [2]
  410. symbol-description: [2]
  411. template-curly-spacing: [2, never]
  412. template-tag-spacing: [2, never]
  413. unicode-bom: [2, never]
  414. unicorn/better-regex: [0]
  415. unicorn/catch-error-name: [0]
  416. unicorn/consistent-destructuring: [2]
  417. unicorn/consistent-function-scoping: [2]
  418. unicorn/custom-error-definition: [0]
  419. unicorn/empty-brace-spaces: [2]
  420. unicorn/error-message: [0]
  421. unicorn/escape-case: [0]
  422. unicorn/expiring-todo-comments: [0]
  423. unicorn/explicit-length-check: [0]
  424. unicorn/filename-case: [0]
  425. unicorn/import-index: [0]
  426. unicorn/import-style: [0]
  427. unicorn/new-for-builtins: [2]
  428. unicorn/no-abusive-eslint-disable: [0]
  429. unicorn/no-array-for-each: [2]
  430. unicorn/no-array-instanceof: [0]
  431. unicorn/no-array-method-this-argument: [2]
  432. unicorn/no-array-push-push: [2]
  433. unicorn/no-await-expression-member: [0]
  434. unicorn/no-console-spaces: [0]
  435. unicorn/no-document-cookie: [2]
  436. unicorn/no-empty-file: [2]
  437. unicorn/no-fn-reference-in-iterator: [0]
  438. unicorn/no-for-loop: [0]
  439. unicorn/no-hex-escape: [0]
  440. unicorn/no-invalid-remove-event-listener: [2]
  441. unicorn/no-keyword-prefix: [0]
  442. unicorn/no-lonely-if: [2]
  443. unicorn/no-negated-condition: [0]
  444. unicorn/no-nested-ternary: [0]
  445. unicorn/no-new-array: [0]
  446. unicorn/no-new-buffer: [0]
  447. unicorn/no-null: [0]
  448. unicorn/no-object-as-default-parameter: [0]
  449. unicorn/no-process-exit: [0]
  450. unicorn/no-reduce: [2]
  451. unicorn/no-static-only-class: [2]
  452. unicorn/no-thenable: [2]
  453. unicorn/no-this-assignment: [2]
  454. unicorn/no-typeof-undefined: [2]
  455. unicorn/no-unnecessary-await: [2]
  456. unicorn/no-unreadable-array-destructuring: [0]
  457. unicorn/no-unreadable-iife: [2]
  458. unicorn/no-unsafe-regex: [0]
  459. unicorn/no-unused-properties: [2]
  460. unicorn/no-useless-fallback-in-spread: [2]
  461. unicorn/no-useless-length-check: [2]
  462. unicorn/no-useless-promise-resolve-reject: [2]
  463. unicorn/no-useless-spread: [2]
  464. unicorn/no-useless-switch-case: [2]
  465. unicorn/no-useless-undefined: [0]
  466. unicorn/no-zero-fractions: [2]
  467. unicorn/number-literal-case: [0]
  468. unicorn/numeric-separators-style: [0]
  469. unicorn/prefer-add-event-listener: [2]
  470. unicorn/prefer-array-find: [2]
  471. unicorn/prefer-array-flat-map: [2]
  472. unicorn/prefer-array-flat: [2]
  473. unicorn/prefer-array-index-of: [2]
  474. unicorn/prefer-array-some: [2]
  475. unicorn/prefer-at: [0]
  476. unicorn/prefer-code-point: [0]
  477. unicorn/prefer-dataset: [2]
  478. unicorn/prefer-date-now: [2]
  479. unicorn/prefer-default-parameters: [0]
  480. unicorn/prefer-event-key: [2]
  481. unicorn/prefer-event-target: [2]
  482. unicorn/prefer-export-from: [2]
  483. unicorn/prefer-includes: [2]
  484. unicorn/prefer-json-parse-buffer: [0]
  485. unicorn/prefer-logical-operator-over-ternary: [2]
  486. unicorn/prefer-math-trunc: [2]
  487. unicorn/prefer-modern-dom-apis: [0]
  488. unicorn/prefer-modern-math-apis: [2]
  489. unicorn/prefer-module: [2]
  490. unicorn/prefer-native-coercion-functions: [2]
  491. unicorn/prefer-negative-index: [2]
  492. unicorn/prefer-node-append: [0]
  493. unicorn/prefer-node-protocol: [2]
  494. unicorn/prefer-node-remove: [0]
  495. unicorn/prefer-number-properties: [0]
  496. unicorn/prefer-object-from-entries: [2]
  497. unicorn/prefer-object-has-own: [0]
  498. unicorn/prefer-optional-catch-binding: [2]
  499. unicorn/prefer-prototype-methods: [0]
  500. unicorn/prefer-query-selector: [0]
  501. unicorn/prefer-reflect-apply: [0]
  502. unicorn/prefer-regexp-test: [2]
  503. unicorn/prefer-replace-all: [0]
  504. unicorn/prefer-set-has: [0]
  505. unicorn/prefer-set-size: [2]
  506. unicorn/prefer-spread: [0]
  507. unicorn/prefer-starts-ends-with: [2]
  508. unicorn/prefer-string-slice: [0]
  509. unicorn/prefer-switch: [0]
  510. unicorn/prefer-ternary: [0]
  511. unicorn/prefer-text-content: [2]
  512. unicorn/prefer-top-level-await: [0]
  513. unicorn/prefer-trim-start-end: [2]
  514. unicorn/prefer-type-error: [0]
  515. unicorn/prevent-abbreviations: [0]
  516. unicorn/relative-url-style: [2]
  517. unicorn/require-array-join-separator: [2]
  518. unicorn/require-number-to-fixed-digits-argument: [2]
  519. unicorn/require-post-message-target-origin: [0]
  520. unicorn/string-content: [0]
  521. unicorn/switch-case-braces: [0]
  522. unicorn/template-indent: [2]
  523. unicorn/text-encoding-identifier-case: [0]
  524. unicorn/throw-new-error: [2]
  525. use-isnan: [2]
  526. valid-typeof: [2, {requireStringLiterals: true}]
  527. vars-on-top: [0]
  528. wrap-iife: [2, inside]
  529. wrap-regex: [0]
  530. yield-star-spacing: [2, after]
  531. yoda: [2, never]