@st1ggy/linter-config 7.3.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +127 -8
  2. package/data/oxlint-config-inventory.json +2268 -0
  3. package/data/oxlint-rule-map.json +91896 -0
  4. package/data/oxlint-source-inventory.json +107728 -0
  5. package/docs/OXLINT_RULE_MAPPING.md +2972 -0
  6. package/docs/RULE_MAPPING.md +15 -0
  7. package/package.json +68 -3
  8. package/scripts/README.md +37 -1
  9. package/scripts/init-astro-ox.sh +4 -0
  10. package/scripts/init-common-ox.sh +4 -0
  11. package/scripts/init-next-ox.sh +4 -0
  12. package/scripts/init-react-ox.sh +4 -0
  13. package/scripts/init-solid-ox.sh +4 -0
  14. package/scripts/init-svelte-ox.sh +4 -0
  15. package/scripts/linter-init-core.mjs +104 -24
  16. package/scripts/linter-init.mjs +24 -32
  17. package/src/oxfmt/index.d.ts +8 -0
  18. package/src/oxfmt/oxfmt.config.common.js +16 -0
  19. package/src/oxlint/configs/config.astro.js +4093 -0
  20. package/src/oxlint/configs/config.common.js +3206 -0
  21. package/src/oxlint/configs/config.next.js +3588 -0
  22. package/src/oxlint/configs/config.react.js +3499 -0
  23. package/src/oxlint/configs/config.solid.js +4972 -0
  24. package/src/oxlint/configs/config.svelte.js +3302 -0
  25. package/src/oxlint/create-config.js +40 -0
  26. package/src/oxlint/index.d.ts +49 -0
  27. package/src/oxlint/oxlint.config.astro.js +4 -0
  28. package/src/oxlint/oxlint.config.common.js +4 -0
  29. package/src/oxlint/oxlint.config.next.js +4 -0
  30. package/src/oxlint/oxlint.config.react.js +4 -0
  31. package/src/oxlint/oxlint.config.solid.js +4 -0
  32. package/src/oxlint/oxlint.config.svelte.js +4 -0
  33. package/src/oxlint/plugins/astro.js +41 -0
  34. package/src/oxlint/plugins/eslint-core.js +5 -0
  35. package/src/oxlint/plugins/fresh-source-code.js +30 -0
  36. package/src/oxlint/plugins/import-x.js +38 -0
  37. package/src/oxlint/plugins/next.js +1 -0
  38. package/src/oxlint/plugins/prettier.js +1 -0
  39. package/src/oxlint/plugins/react-hooks.js +1 -0
  40. package/src/oxlint/plugins/react.js +1 -0
  41. package/src/oxlint/plugins/solid.js +1 -0
  42. package/src/oxlint/plugins/sonarjs.js +5 -0
  43. package/src/oxlint/plugins/stylistic.js +1 -0
  44. package/src/oxlint/plugins/svelte.js +42 -0
  45. package/src/oxlint/plugins/typescript.js +1 -0
  46. package/src/oxlint/plugins/unicorn.js +5 -0
  47. package/src/oxlint/stacks.js +17 -0
  48. package/scripts/package-smoke.mjs +0 -56
  49. package/scripts/solid-config.test.mjs +0 -134
@@ -0,0 +1,3302 @@
1
+ // Generated by scripts/oxlint-generate.mjs.
2
+ /* eslint-disable unicorn/prefer-string-raw, unicorn/numeric-separators-style -- Serialized rule options. */
3
+ export default {
4
+ formatter: 'prettier',
5
+ plugins: ['eslint', 'import', 'typescript', 'unicorn'],
6
+ jsPlugins: [
7
+ 'eslint-js',
8
+ 'import-x-js',
9
+ 'prettier',
10
+ 'sonarjs',
11
+ 'stylistic-js',
12
+ 'svelte',
13
+ 'typescript-js',
14
+ 'unicorn-js',
15
+ ],
16
+ settings: {
17
+ 'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
18
+ 'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
19
+ 'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
20
+ 'import-x/resolver': { typescript: true, node: true },
21
+ react: { version: '999.999.999' },
22
+ 'st1ggy/import-defaults': {
23
+ 'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
24
+ 'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
25
+ 'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
26
+ 'import-x/resolver': { typescript: true, node: true },
27
+ react: { version: '999.999.999' },
28
+ },
29
+ 'st1ggy/import-scopes': [
30
+ {
31
+ extension: 'svelte',
32
+ settings: {
33
+ 'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
34
+ 'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
35
+ 'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
36
+ 'import-x/resolver': {
37
+ typescript: true,
38
+ node: true,
39
+ 'eslint-import-resolver-custom-alias': {
40
+ alias: {
41
+ $lib: 'src/lib',
42
+ $app: 'node_modules/@sveltejs/kit/src/runtime/app',
43
+ '@sveltejs/kit': 'node_modules/@sveltejs/kit/src/exports/index.js',
44
+ },
45
+ extensions: ['.js'],
46
+ },
47
+ },
48
+ react: { version: '999.999.999' },
49
+ },
50
+ },
51
+ {
52
+ extension: 'svelte.ts',
53
+ settings: {
54
+ 'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
55
+ 'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
56
+ 'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
57
+ 'import-x/resolver': {
58
+ typescript: true,
59
+ node: true,
60
+ 'eslint-import-resolver-custom-alias': {
61
+ alias: {
62
+ $lib: 'src/lib',
63
+ $app: 'node_modules/@sveltejs/kit/src/runtime/app',
64
+ '@sveltejs/kit': 'node_modules/@sveltejs/kit/src/exports/index.js',
65
+ },
66
+ extensions: ['.js'],
67
+ },
68
+ },
69
+ react: { version: '999.999.999' },
70
+ },
71
+ },
72
+ ],
73
+ },
74
+ profiles: {
75
+ '19bd8fa797f7662f': {
76
+ rules: {
77
+ 'stylistic-js/lines-between-class-members': [
78
+ 2,
79
+ 'always',
80
+ { exceptAfterOverload: true, exceptAfterSingleLine: true },
81
+ ],
82
+ 'stylistic-js/padding-line-between-statements': [
83
+ 2,
84
+ { blankLine: 'always', prev: '*', next: 'if' },
85
+ { blankLine: 'always', prev: 'if', next: 'if' },
86
+ { blankLine: 'always', prev: ['const', 'let'], next: '*' },
87
+ { blankLine: 'any', prev: ['const', 'let'], next: ['const', 'let'] },
88
+ { blankLine: 'always', prev: '*', next: 'return' },
89
+ { blankLine: 'always', prev: '*', next: 'case' },
90
+ { blankLine: 'always', prev: 'if', next: '*' },
91
+ ],
92
+ 'stylistic-js/spaced-comment': [2, 'always'],
93
+ 'typescript/adjacent-overload-signatures': [2],
94
+ 'typescript-js/array-type': [2],
95
+ 'typescript/ban-ts-comment': [
96
+ 2,
97
+ { 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
98
+ ],
99
+ 'typescript/ban-tslint-comment': [2],
100
+ 'typescript/class-literal-property-style': [2],
101
+ 'typescript/consistent-generic-constructors': [2],
102
+ 'typescript/consistent-indexed-object-style': [2],
103
+ 'typescript/consistent-type-assertions': [2],
104
+ 'typescript/consistent-type-definitions': [2, 'type'],
105
+ 'typescript/consistent-type-imports': [2, { fixStyle: 'inline-type-imports' }],
106
+ 'eslint/no-array-constructor': [2],
107
+ 'typescript/no-confusing-non-null-assertion': [2],
108
+ 'typescript/no-duplicate-enum-values': [2],
109
+ 'eslint/no-empty-function': [2, { allow: [] }],
110
+ 'typescript/no-empty-object-type': [2],
111
+ 'typescript/no-explicit-any': [2],
112
+ 'typescript/no-extra-non-null-assertion': [2],
113
+ 'typescript/no-inferrable-types': [2],
114
+ 'typescript/no-misused-new': [2],
115
+ 'typescript/no-namespace': [2],
116
+ 'typescript/no-non-null-asserted-optional-chain': [2],
117
+ 'typescript/no-require-imports': [2],
118
+ 'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
119
+ 'typescript/no-this-alias': [2],
120
+ 'typescript/no-unnecessary-type-constraint': [2],
121
+ 'typescript/no-unsafe-declaration-merging': [2],
122
+ 'typescript/no-unsafe-function-type': [2],
123
+ 'eslint/no-unused-expressions': [
124
+ 2,
125
+ { allowShortCircuit: false, allowTaggedTemplates: false, allowTernary: false },
126
+ ],
127
+ 'eslint/no-unused-vars': [2, { ignoreRestSiblings: true }],
128
+ 'typescript/no-wrapper-object-types': [2],
129
+ 'typescript-js/prefer-as-const': [2],
130
+ 'typescript/prefer-for-of': [2],
131
+ 'typescript/prefer-function-type': [2],
132
+ 'typescript/prefer-namespace-keyword': [2],
133
+ 'typescript/switch-exhaustiveness-check': [2],
134
+ 'typescript/triple-slash-reference': [2],
135
+ 'eslint/arrow-body-style': [2, 'as-needed'],
136
+ 'eslint-js/camelcase': [
137
+ 2,
138
+ { allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
139
+ ],
140
+ 'eslint/constructor-super': [2],
141
+ 'eslint/for-direction': [2],
142
+ 'eslint/getter-return': [2, { allowImplicit: false }],
143
+ 'import/default': [2],
144
+ 'import/export': [2],
145
+ 'import/extensions': [2, 'never', { js: 'never', json: 'ignorePackages' }],
146
+ 'import/namespace': [2],
147
+ 'import/newline-after-import': [2],
148
+ 'import/no-duplicates': [2, { considerQueryString: true }],
149
+ 'import/no-named-as-default': [1],
150
+ 'import/no-named-as-default-member': [1],
151
+ 'import-x-js/no-unresolved': [2, { caseSensitive: true }],
152
+ 'import-x-js/order': [
153
+ 2,
154
+ {
155
+ 'newlines-between': 'always',
156
+ groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
157
+ pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
158
+ alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
159
+ distinctGroup: true,
160
+ sortTypesGroup: false,
161
+ named: false,
162
+ warnOnUnassignedImports: false,
163
+ },
164
+ ],
165
+ 'eslint-js/newline-before-return': [2],
166
+ 'eslint/no-async-promise-executor': [2],
167
+ 'eslint/no-case-declarations': [2],
168
+ 'eslint/no-class-assign': [2],
169
+ 'eslint/no-compare-neg-zero': [2],
170
+ 'eslint/no-cond-assign': [2, 'except-parens'],
171
+ 'eslint/no-console': [1, {}],
172
+ 'eslint/no-const-assign': [2],
173
+ 'eslint/no-constant-binary-expression': [2, { checkRelationalComparisons: false }],
174
+ 'eslint/no-constant-condition': [2, { checkLoops: 'allExceptWhileTrue' }],
175
+ 'eslint/no-control-regex': [2],
176
+ 'eslint/no-debugger': [1],
177
+ 'eslint/no-delete-var': [2],
178
+ 'eslint-js/no-dupe-args': [2],
179
+ 'eslint/no-dupe-class-members': [2],
180
+ 'eslint/no-dupe-else-if': [2],
181
+ 'eslint/no-dupe-keys': [2],
182
+ 'eslint/no-duplicate-case': [2],
183
+ 'eslint/no-empty': [2, { allowEmptyCatch: false }],
184
+ 'eslint/no-empty-character-class': [2],
185
+ 'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
186
+ 'eslint/no-empty-static-block': [2],
187
+ 'eslint/no-ex-assign': [2],
188
+ 'eslint/no-extra-boolean-cast': [2, {}],
189
+ 'eslint/no-fallthrough': [2, { allowEmptyCase: false, reportUnusedFallthroughComment: false }],
190
+ 'eslint/no-func-assign': [2],
191
+ 'eslint/no-global-assign': [2, { exceptions: [] }],
192
+ 'eslint/no-import-assign': [2],
193
+ 'eslint/no-invalid-regexp': [2, {}],
194
+ 'eslint/no-irregular-whitespace': [
195
+ 2,
196
+ { skipComments: false, skipJSXText: false, skipRegExps: false, skipStrings: true, skipTemplates: false },
197
+ ],
198
+ 'eslint/no-loss-of-precision': [2],
199
+ 'eslint/no-misleading-character-class': [2, { allowEscape: false }],
200
+ 'eslint/no-new-native-nonconstructor': [2],
201
+ 'eslint/no-nonoctal-decimal-escape': [2],
202
+ 'eslint/no-obj-calls': [2],
203
+ 'eslint-js/no-octal': [2],
204
+ 'eslint/no-prototype-builtins': [2],
205
+ 'eslint/no-redeclare': [2, { builtinGlobals: true }],
206
+ 'eslint/no-regex-spaces': [2],
207
+ 'eslint-js/no-restricted-syntax': [
208
+ 2,
209
+ { selector: 'WithStatement', message: '`with` statement are not allowed.' },
210
+ { selector: 'ForInStatement', message: 'Use for..of instead.' },
211
+ {
212
+ selector: 'TSEnumDeclaration',
213
+ message: "Don't declare enums, use type union of literal strings or constants.",
214
+ },
215
+ { selector: 'MemberExpression[object.name="React"]', message: 'Use named imports from react.' },
216
+ {
217
+ selector:
218
+ 'CallExpression[callee.property.name="replaceAll"] > Literal[regex.flags=/^[^g]*$/].arguments:first-child',
219
+ message: 'Missing "g" flag in regular expression.',
220
+ },
221
+ ],
222
+ 'eslint/no-self-assign': [2, { props: true }],
223
+ 'eslint/no-setter-return': [2],
224
+ 'eslint/no-shadow-restricted-names': [2, { reportGlobalThis: true }],
225
+ 'eslint/no-sparse-arrays': [2],
226
+ 'eslint/no-this-before-super': [2],
227
+ 'eslint/no-unassigned-vars': [2],
228
+ 'eslint/no-unreachable': [2],
229
+ 'eslint/no-unsafe-finally': [2],
230
+ 'eslint/no-unsafe-negation': [2, { enforceForOrderingRelations: false }],
231
+ 'eslint/no-unsafe-optional-chaining': [2, { disallowArithmeticOperators: false }],
232
+ 'eslint/no-unused-labels': [2],
233
+ 'eslint/no-unused-private-class-members': [2],
234
+ 'eslint/no-useless-assignment': [2],
235
+ 'eslint/no-useless-backreference': [2],
236
+ 'eslint/no-useless-catch': [2],
237
+ 'eslint/no-useless-escape': [2, { allowRegexCharacters: [] }],
238
+ 'eslint/no-with': [2],
239
+ 'eslint/object-shorthand': [2, 'always'],
240
+ 'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
241
+ 'eslint/prefer-template': [2],
242
+ 'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
243
+ 'prettier/prettier': [2],
244
+ 'eslint/require-yield': [2],
245
+ 'sonarjs/assertions-in-test-cases': [2],
246
+ 'sonarjs/async-test-assertions': [2],
247
+ 'sonarjs/aws-apigateway-public-api': [2],
248
+ 'sonarjs/aws-ec2-rds-dms-public': [2],
249
+ 'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
250
+ 'sonarjs/aws-efs-unencrypted': [2],
251
+ 'sonarjs/aws-iam-all-privileges': [2],
252
+ 'sonarjs/aws-iam-privilege-escalation': [2],
253
+ 'sonarjs/aws-iam-public-access': [2],
254
+ 'sonarjs/aws-opensearchservice-domain': [2],
255
+ 'sonarjs/aws-rds-unencrypted-databases': [2],
256
+ 'sonarjs/aws-restricted-ip-admin-access': [2],
257
+ 'sonarjs/aws-s3-bucket-granted-access': [2],
258
+ 'sonarjs/aws-s3-bucket-insecure-http': [2],
259
+ 'sonarjs/aws-s3-bucket-public-access': [2],
260
+ 'sonarjs/aws-s3-bucket-versioning': [2],
261
+ 'sonarjs/aws-sagemaker-unencrypted-notebook': [2],
262
+ 'sonarjs/aws-sns-unencrypted-topics': [2],
263
+ 'sonarjs/aws-sqs-unencrypted-queue': [2],
264
+ 'sonarjs/block-scoped-var': [2],
265
+ 'sonarjs/call-argument-line': [2],
266
+ 'sonarjs/chai-determinate-assertion': [2],
267
+ 'sonarjs/class-name': [2, { format: '^\\$?[A-Z][a-zA-Z0-9]*$' }],
268
+ 'sonarjs/code-eval': [2],
269
+ 'sonarjs/cognitive-complexity': [2, 15],
270
+ 'sonarjs/comma-or-logical-or-case': [2],
271
+ 'sonarjs/constructor-for-side-effects': [2],
272
+ 'sonarjs/content-length': [2, { fileUploadSizeLimit: 8000000, standardSizeLimit: 2000000 }],
273
+ 'sonarjs/content-security-policy': [2],
274
+ 'sonarjs/cookie-no-httponly': [2],
275
+ 'sonarjs/cors': [2],
276
+ 'sonarjs/csrf': [2],
277
+ 'typescript/no-deprecated': [2],
278
+ 'sonarjs/disabled-timeout': [2],
279
+ 'sonarjs/dynamically-constructed-templates': [2],
280
+ 'sonarjs/encryption-secure-mode': [2],
281
+ 'sonarjs/explicit-test-skip': [2],
282
+ 'sonarjs/file-permissions': [2],
283
+ 'sonarjs/file-uploads': [2],
284
+ 'sonarjs/fixme-tag': [2],
285
+ 'sonarjs/for-loop-increment-sign': [2],
286
+ 'sonarjs/function-inside-loop': [2],
287
+ 'sonarjs/future-reserved-words': [2],
288
+ 'sonarjs/generator-without-yield': [2],
289
+ 'sonarjs/hardcoded-secret-signatures': [2],
290
+ 'sonarjs/hashing': [2],
291
+ 'sonarjs/hooks-before-test-cases': [2],
292
+ 'sonarjs/inconsistent-function-call': [2],
293
+ 'sonarjs/insecure-cookie': [2],
294
+ 'sonarjs/insecure-jwt-token': [2],
295
+ 'sonarjs/inverted-assertion-arguments': [2],
296
+ 'sonarjs/label-position': [2],
297
+ 'sonarjs/link-with-target-blank': [2],
298
+ 'sonarjs/max-switch-cases': [2, 30],
299
+ 'sonarjs/memoize-cache-key': [2],
300
+ 'sonarjs/misplaced-loop-counter': [2],
301
+ 'sonarjs/no-all-duplicated-branches': [2],
302
+ 'typescript/require-array-sort-compare': [2],
303
+ 'sonarjs/no-angular-bypass-sanitization': [2],
304
+ 'typescript/no-array-delete': [2],
305
+ 'sonarjs/no-case-label-in-switch': [2],
306
+ 'sonarjs/no-clear-text-protocols': [2],
307
+ 'sonarjs/no-code-after-done': [2],
308
+ 'sonarjs/no-dead-store': [2],
309
+ 'sonarjs/no-debug-commands-in-ui-tests': [2],
310
+ 'sonarjs/no-default-utility-imports': [2],
311
+ 'sonarjs/no-delete-var': [2],
312
+ 'sonarjs/no-duplicate-in-composite': [2],
313
+ 'sonarjs/no-duplicate-test-title': [2],
314
+ 'sonarjs/no-duplicated-branches': [2],
315
+ 'sonarjs/no-element-overwrite': [2],
316
+ 'sonarjs/no-empty-collection': [2],
317
+ 'sonarjs/no-empty-test-file': [2],
318
+ 'sonarjs/no-empty-test-title': [2],
319
+ 'sonarjs/no-equals-in-for-termination': [2],
320
+ 'sonarjs/no-exclusive-tests': [2],
321
+ 'sonarjs/no-extra-arguments': [2],
322
+ 'sonarjs/no-fallthrough': [2],
323
+ 'sonarjs/no-fixed-wait-in-tests': [2],
324
+ 'sonarjs/no-floating-point-equality': [2],
325
+ 'sonarjs/no-forced-browser-interaction': [2],
326
+ 'sonarjs/no-global-this': [2],
327
+ 'sonarjs/no-globals-shadowing': [2],
328
+ 'sonarjs/no-gratuitous-expressions': [2],
329
+ 'sonarjs/no-hardcoded-ip': [2],
330
+ 'sonarjs/no-hardcoded-passwords': [2, { passwordWords: ['password', 'pwd', 'passwd', 'passphrase'] }],
331
+ 'sonarjs/no-hardcoded-secrets': [
332
+ 2,
333
+ { secretWords: 'api[_.-]?key,auth,credential,secret,token', randomnessSensibility: 5 },
334
+ ],
335
+ 'sonarjs/no-hook-setter-in-body': [2],
336
+ 'sonarjs/no-identical-conditions': [2],
337
+ 'sonarjs/no-identical-expressions': [2],
338
+ 'sonarjs/no-identical-functions': [2, 3],
339
+ 'sonarjs/no-ignored-exceptions': [2],
340
+ 'sonarjs/no-implicit-global': [2],
341
+ 'sonarjs/no-incomplete-assertions': [2],
342
+ 'sonarjs/no-internal-api-use': [2],
343
+ 'sonarjs/no-interpolation-in-inline-snapshots': [2],
344
+ 'sonarjs/no-invariant-returns': [2],
345
+ 'sonarjs/no-inverted-boolean-check': [2],
346
+ 'sonarjs/no-labels': [2],
347
+ 'sonarjs/no-literal-call': [2],
348
+ 'sonarjs/no-mime-sniff': [2],
349
+ 'sonarjs/no-mixed-completion-style': [2],
350
+ 'sonarjs/no-nested-assignment': [2],
351
+ 'sonarjs/no-nested-conditional': [2],
352
+ 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
353
+ 'sonarjs/no-nested-template-literals': [2],
354
+ 'sonarjs/no-os-command-from-path': [2],
355
+ 'sonarjs/no-parameter-reassignment': [2],
356
+ 'sonarjs/no-primitive-wrappers': [2],
357
+ 'sonarjs/no-redundant-assignments': [2],
358
+ 'sonarjs/no-redundant-boolean': [2],
359
+ 'sonarjs/no-redundant-jump': [2],
360
+ 'sonarjs/no-referrer-policy': [2],
361
+ 'sonarjs/no-same-argument-assert': [2],
362
+ 'sonarjs/no-same-line-conditional': [2],
363
+ 'sonarjs/no-session-cookies-on-static-assets': [2],
364
+ 'sonarjs/no-skipped-tests': [2],
365
+ 'sonarjs/no-table-as-layout': [2],
366
+ 'sonarjs/no-trivial-assertions': [2],
367
+ 'sonarjs/no-unenclosed-multiline-block': [2],
368
+ 'sonarjs/no-uniq-key': [2],
369
+ 'sonarjs/no-unthrown-error': [2],
370
+ 'sonarjs/no-unused-collection': [2],
371
+ 'sonarjs/no-unused-vars': [2],
372
+ 'sonarjs/no-use-of-empty-return-value': [2],
373
+ 'sonarjs/no-useless-catch': [2],
374
+ 'sonarjs/no-useless-increment': [2],
375
+ 'sonarjs/no-useless-react-setstate': [2],
376
+ 'sonarjs/no-weak-cipher': [2],
377
+ 'sonarjs/no-weak-keys': [2],
378
+ 'sonarjs/non-existent-operator': [2],
379
+ 'sonarjs/object-alt-content': [2],
380
+ 'sonarjs/parameterized-tests': [2],
381
+ 'sonarjs/prefer-default-last': [2],
382
+ 'sonarjs/prefer-native-lodash-alternative': [2],
383
+ 'sonarjs/prefer-promise-shorthand': [2],
384
+ 'typescript/prefer-regexp-exec': [2],
385
+ 'sonarjs/prefer-single-boolean-return': [2],
386
+ 'sonarjs/prefer-specific-assertions': [2],
387
+ 'sonarjs/prefer-type-guard': [2],
388
+ 'sonarjs/prefer-while': [2],
389
+ 'sonarjs/production-debug': [2],
390
+ 'sonarjs/pseudo-random': [2],
391
+ 'sonarjs/public-static-readonly': [2],
392
+ 'sonarjs/publicly-writable-directories': [2],
393
+ 'sonarjs/redundant-type-aliases': [2],
394
+ 'sonarjs/review-blockchain-mnemonic': [2],
395
+ 'sonarjs/session-regeneration': [2],
396
+ 'sonarjs/stable-tests': [2],
397
+ 'sonarjs/stateful-regex': [2],
398
+ 'sonarjs/strict-transport-security': [2],
399
+ 'sonarjs/super-linear-regex': [2],
400
+ 'sonarjs/synchronous-suite-callback': [2],
401
+ 'sonarjs/table-header': [2],
402
+ 'sonarjs/table-header-reference': [2],
403
+ 'sonarjs/test-check-exception': [2],
404
+ 'sonarjs/todo-tag': [1],
405
+ 'sonarjs/unverified-certificate': [2],
406
+ 'sonarjs/unverified-hostname': [2],
407
+ 'sonarjs/updated-const-var': [2],
408
+ 'sonarjs/updated-loop-counter': [2],
409
+ 'sonarjs/use-type-alias': [2],
410
+ 'sonarjs/weak-ssl': [2],
411
+ 'sonarjs/x-powered-by': [2],
412
+ 'sonarjs/xml-parser-xxe': [2],
413
+ 'eslint/sort-imports': [
414
+ 2,
415
+ {
416
+ allowSeparatedGroups: false,
417
+ ignoreCase: false,
418
+ ignoreDeclarationSort: true,
419
+ ignoreMemberSort: false,
420
+ memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
421
+ },
422
+ ],
423
+ 'svelte/no-inner-declarations': [2, 'functions', { blockScopedFunctions: 'allow' }],
424
+ 'svelte/no-inspect': [1],
425
+ 'svelte/no-navigation-without-resolve': [2],
426
+ 'svelte/no-store-async': [2],
427
+ 'svelte/no-svelte-internal': [2],
428
+ 'svelte/no-unnecessary-state-wrap': [2],
429
+ 'svelte/prefer-svelte-reactivity': [2],
430
+ 'svelte/prefer-writable-derived': [2],
431
+ 'unicorn-js/better-dom-traversing': [2],
432
+ 'unicorn/catch-error-name': [2, { name: 'error', ignore: [] }],
433
+ 'unicorn-js/class-reference-in-static-methods': [2, { preferThis: true, preferSuper: true }],
434
+ 'unicorn/consistent-assert': [2],
435
+ 'unicorn-js/consistent-boolean-name': [
436
+ 2,
437
+ {
438
+ checkVariables: 'always',
439
+ checkArguments: 'always',
440
+ checkFunctions: 'always',
441
+ checkMethods: 'never',
442
+ checkFields: 'never',
443
+ ignore: [],
444
+ wrappers: {},
445
+ },
446
+ ],
447
+ 'unicorn-js/consistent-class-member-order': [
448
+ 2,
449
+ {
450
+ order: [
451
+ 'static-field',
452
+ 'static-block',
453
+ 'static-method',
454
+ 'private-field',
455
+ 'public-field',
456
+ 'constructor',
457
+ 'private-method',
458
+ 'public-method',
459
+ ],
460
+ },
461
+ ],
462
+ 'unicorn-js/consistent-compound-words': [2, {}],
463
+ 'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
464
+ 'unicorn/consistent-date-clone': [2],
465
+ 'unicorn-js/consistent-destructuring': [2],
466
+ 'unicorn/consistent-empty-array-spread': [2],
467
+ 'unicorn/consistent-existence-index-check': [2],
468
+ 'unicorn-js/consistent-export-decorator-position': [2, 'above'],
469
+ 'unicorn-js/consistent-function-scoping': [2, { checkArrowFunctions: true }],
470
+ 'unicorn-js/consistent-json-file-read': [2, 'string'],
471
+ 'unicorn-js/consistent-optional-chaining': [2],
472
+ 'unicorn/consistent-template-literal-escape': [2],
473
+ 'unicorn-js/consistent-tuple-labels': [2],
474
+ 'unicorn/custom-error-definition': [2],
475
+ 'unicorn-js/default-export-style': [2, { functions: 'inline', classes: 'inline' }],
476
+ 'unicorn-js/dom-node-dataset': [2, { preferAttributes: false }],
477
+ 'unicorn/empty-brace-spaces': [2],
478
+ 'unicorn/error-message': [2],
479
+ 'unicorn-js/escape-case': [2, 'uppercase'],
480
+ 'unicorn-js/expiring-todo-comments': [
481
+ 2,
482
+ {
483
+ terms: ['todo', 'fixme', 'xxx'],
484
+ ignore: [],
485
+ checkDates: false,
486
+ checkDatesOnPullRequests: false,
487
+ allowWarningComments: true,
488
+ },
489
+ ],
490
+ 'unicorn/explicit-length-check': [2, { 'non-zero': 'greater-than' }],
491
+ 'unicorn-js/explicit-timer-delay': [2, 'always'],
492
+ 'unicorn/filename-case': [2],
493
+ 'unicorn/import-style': [2, {}],
494
+ 'unicorn-js/isolated-functions': [
495
+ 2,
496
+ { functions: ['makeSynchronous', 'workerize'], selectors: [], comments: ['@isolated'], overrideGlobals: {} },
497
+ ],
498
+ 'unicorn-js/logical-assignment-operators': [2, 'always'],
499
+ 'unicorn/max-nested-calls': [2, { max: 3 }],
500
+ 'unicorn-js/name-replacements': [
501
+ 2,
502
+ {
503
+ replacements: {
504
+ dev: false,
505
+ prod: false,
506
+ props: false,
507
+ ref: false,
508
+ refs: false,
509
+ args: false,
510
+ params: false,
511
+ utils: false,
512
+ env: false,
513
+ },
514
+ },
515
+ ],
516
+ 'unicorn/new-for-builtins': [2],
517
+ 'unicorn/no-abusive-eslint-disable': [2],
518
+ 'unicorn/no-accessor-recursion': [2],
519
+ 'unicorn-js/no-accidental-bitwise-operator': [2],
520
+ 'unicorn/no-anonymous-default-export': [2],
521
+ 'unicorn-js/no-array-callback-reference': [2, { ignore: [] }],
522
+ 'unicorn-js/no-array-concat-in-loop': [2],
523
+ 'unicorn/no-array-fill-with-reference-type': [2],
524
+ 'unicorn-js/no-array-from-fill': [2],
525
+ 'unicorn/no-array-method-this-argument': [2],
526
+ 'unicorn/no-array-reduce': [2, { allowSimpleOperations: true }],
527
+ 'unicorn/no-array-reverse': [2, { allowExpressionStatement: true }],
528
+ 'unicorn/no-array-sort': [2, { allowExpressionStatement: true }],
529
+ 'unicorn-js/no-array-sort-for-min-max': [2],
530
+ 'unicorn-js/no-array-splice': [2],
531
+ 'unicorn-js/no-async-promise-finally': [2],
532
+ 'unicorn/no-await-expression-member': [2],
533
+ 'unicorn/no-await-in-promise-methods': [2],
534
+ 'unicorn-js/no-boolean-sort-comparator': [2],
535
+ 'unicorn-js/no-break-in-nested-loop': [2],
536
+ 'unicorn-js/no-canvas-to-image': [2],
537
+ 'unicorn-js/no-chained-comparison': [2],
538
+ 'unicorn-js/no-collection-bracket-access': [2],
539
+ 'unicorn-js/no-computed-property-existence-check': [2],
540
+ 'unicorn-js/no-confusing-array-splice': [2],
541
+ 'unicorn/no-confusing-array-with': [2],
542
+ 'unicorn/no-console-spaces': [2],
543
+ 'unicorn-js/no-constant-zero-expression': [2],
544
+ 'unicorn-js/no-declarations-before-early-exit': [2],
545
+ 'unicorn/no-document-cookie': [2],
546
+ 'unicorn-js/no-double-comparison': [2],
547
+ 'unicorn-js/no-duplicate-if-branches': [2],
548
+ 'unicorn-js/no-duplicate-logical-operands': [2],
549
+ 'unicorn-js/no-duplicate-loops': [2],
550
+ 'unicorn-js/no-duplicate-set-values': [2],
551
+ 'unicorn-js/no-empty-file': [2, { allowComments: false }],
552
+ 'unicorn-js/no-error-property-assignment': [2],
553
+ 'unicorn-js/no-exports-in-scripts': [2],
554
+ 'unicorn-js/no-for-each': [2],
555
+ 'unicorn-js/no-for-loop': [2],
556
+ 'unicorn-js/no-global-object-property-assignment': [2],
557
+ 'unicorn/no-immediate-mutation': [2],
558
+ 'unicorn-js/no-impossible-length-comparison': [2],
559
+ 'unicorn-js/no-incorrect-query-selector': [2],
560
+ 'unicorn-js/no-incorrect-template-string-interpolation': [2],
561
+ 'unicorn/no-instanceof-builtins': [2, { useErrorIsError: false, strategy: 'loose', include: [], exclude: [] }],
562
+ 'unicorn-js/no-invalid-argument-count': [2, {}],
563
+ 'unicorn-js/no-invalid-character-comparison': [2],
564
+ 'unicorn/no-invalid-fetch-options': [2],
565
+ 'unicorn/no-invalid-remove-event-listener': [2],
566
+ 'unicorn-js/no-invalid-well-known-symbol-methods': [2],
567
+ 'unicorn-js/no-late-current-target-access': [2],
568
+ 'unicorn-js/no-late-event-control': [2],
569
+ 'unicorn/no-lonely-if': [2],
570
+ 'unicorn-js/no-loop-iterable-mutation': [2],
571
+ 'unicorn/no-magic-array-flat-depth': [2],
572
+ 'unicorn-js/no-mismatched-map-key': [2],
573
+ 'unicorn-js/no-misrefactored-assignment': [2],
574
+ 'unicorn-js/no-multiple-promise-resolver-calls': [2],
575
+ 'unicorn-js/no-named-default': [2],
576
+ 'unicorn-js/no-negated-array-predicate': [2],
577
+ 'unicorn-js/no-negated-comparison': [2, { checkLogicalExpressions: false }],
578
+ 'unicorn/no-negated-condition': [2],
579
+ 'unicorn/no-negation-in-equality-check': [2],
580
+ 'unicorn/no-nested-ternary': [2],
581
+ 'unicorn/no-new-array': [2],
582
+ 'unicorn/no-new-buffer': [2],
583
+ 'unicorn-js/no-nonstandard-builtin-properties': [2],
584
+ 'unicorn/no-object-as-default-parameter': [2],
585
+ 'unicorn-js/no-object-methods-with-collections': [2],
586
+ 'unicorn-js/no-optional-chaining-on-undeclared-variable': [2],
587
+ 'unicorn/no-process-exit': [2],
588
+ 'unicorn-js/no-redundant-comparison': [2],
589
+ 'unicorn-js/no-return-array-push': [2],
590
+ 'unicorn-js/no-selector-as-dom-name': [2],
591
+ 'unicorn/no-single-promise-in-promise-methods': [2],
592
+ 'unicorn/no-static-only-class': [2],
593
+ 'unicorn-js/no-subtraction-comparison': [2],
594
+ 'unicorn/no-thenable': [2],
595
+ 'unicorn/no-this-assignment': [2],
596
+ 'unicorn-js/no-this-outside-of-class': [2],
597
+ 'unicorn-js/no-top-level-assignment-in-function': [2],
598
+ 'unicorn-js/no-top-level-side-effects': [2],
599
+ 'unicorn/no-typeof-undefined': [2, { checkGlobalVariables: false }],
600
+ 'unicorn-js/no-uncalled-method': [2],
601
+ 'unicorn-js/no-undeclared-class-members': [2],
602
+ 'unicorn/no-unnecessary-array-flat-depth': [2],
603
+ 'unicorn-js/no-unnecessary-array-flat-map': [2],
604
+ 'unicorn/no-unnecessary-array-splice-count': [2],
605
+ 'unicorn-js/no-unnecessary-await': [2],
606
+ 'unicorn-js/no-unnecessary-boolean-comparison': [2],
607
+ 'unicorn-js/no-unnecessary-fetch-options': [2],
608
+ 'unicorn-js/no-unnecessary-global-this': [2],
609
+ 'unicorn-js/no-unnecessary-nested-ternary': [2],
610
+ 'unicorn-js/no-unnecessary-polyfills': [2, {}],
611
+ 'unicorn/no-unnecessary-slice-end': [2],
612
+ 'unicorn-js/no-unnecessary-splice': [2],
613
+ 'unicorn-js/no-unnecessary-string-trim': [2],
614
+ 'unicorn-js/no-unreadable-array-destructuring': [2, { maximumIgnoredElements: 1 }],
615
+ 'unicorn-js/no-unreadable-for-of-expression': [2],
616
+ 'unicorn/no-unreadable-iife': [2],
617
+ 'unicorn-js/no-unreadable-object-destructuring': [2],
618
+ 'unicorn-js/no-unsafe-buffer-conversion': [2],
619
+ 'unicorn-js/no-unsafe-promise-all-settled-values': [2],
620
+ 'unicorn-js/no-unsafe-property-key': [2],
621
+ 'unicorn-js/no-unsafe-sqlite-interpolation': [2],
622
+ 'unicorn-js/no-unsafe-string-replacement': [2],
623
+ 'unicorn-js/no-unused-array-method-return': [2],
624
+ 'unicorn-js/no-unused-properties': [2],
625
+ 'unicorn-js/no-useless-boolean-cast': [2],
626
+ 'unicorn-js/no-useless-coercion': [2],
627
+ 'unicorn/no-useless-collection-argument': [2],
628
+ 'unicorn-js/no-useless-compound-assignment': [2],
629
+ 'unicorn-js/no-useless-concat': [2],
630
+ 'unicorn-js/no-useless-continue': [2],
631
+ 'unicorn-js/no-useless-delete-check': [2],
632
+ 'unicorn-js/no-useless-else': [2],
633
+ 'unicorn/no-useless-error-capture-stack-trace': [2],
634
+ 'unicorn/no-useless-fallback-in-spread': [2],
635
+ 'unicorn/no-useless-iterator-to-array': [2],
636
+ 'unicorn/no-useless-length-check': [2],
637
+ 'unicorn-js/no-useless-logical-operand': [2],
638
+ 'unicorn-js/no-useless-override': [2],
639
+ 'unicorn/no-useless-promise-resolve-reject': [2],
640
+ 'unicorn-js/no-useless-re-export': [2],
641
+ 'unicorn-js/no-useless-recursion': [2],
642
+ 'unicorn/no-useless-spread': [2],
643
+ 'unicorn/no-useless-switch-case': [2],
644
+ 'unicorn-js/no-useless-template-literals': [2],
645
+ 'unicorn/no-useless-undefined': [2, { checkArguments: true, checkArrowFunctionBody: true }],
646
+ 'unicorn-js/no-xor-as-exponentiation': [2],
647
+ 'unicorn/no-zero-fractions': [2],
648
+ 'unicorn-js/number-literal-case': [2, { hexadecimalValue: 'uppercase' }],
649
+ 'unicorn-js/numeric-separators-style': [
650
+ 2,
651
+ {
652
+ onlyIfContainsSeparator: false,
653
+ binary: { minimumDigits: 0, groupLength: 4 },
654
+ octal: { minimumDigits: 0, groupLength: 4 },
655
+ hexadecimal: { minimumDigits: 0, groupLength: 2 },
656
+ number: { minimumDigits: 5, groupLength: 3 },
657
+ },
658
+ ],
659
+ 'unicorn-js/operator-assignment': [2, 'always'],
660
+ 'unicorn-js/prefer-abort-signal-any': [2],
661
+ 'unicorn-js/prefer-abort-signal-timeout': [2],
662
+ 'unicorn-js/prefer-add-event-listener': [2, { excludedPackages: ['koa', 'sax'] }],
663
+ 'unicorn-js/prefer-add-event-listener-options': [2],
664
+ 'unicorn-js/prefer-aggregate-error': [2],
665
+ 'unicorn-js/prefer-array-find': [2, { checkFromLast: true }],
666
+ 'unicorn-js/prefer-array-flat': [2, { functions: [] }],
667
+ 'unicorn/prefer-array-flat-map': [2],
668
+ 'unicorn-js/prefer-array-from-async': [2],
669
+ 'unicorn-js/prefer-array-from-map': [2],
670
+ 'unicorn-js/prefer-array-from-range': [2],
671
+ 'unicorn/prefer-array-index-of': [2],
672
+ 'unicorn-js/prefer-array-iterable-methods': [2],
673
+ 'unicorn-js/prefer-array-last-methods': [2],
674
+ 'unicorn-js/prefer-array-slice': [2],
675
+ 'unicorn/prefer-array-some': [2],
676
+ 'unicorn/prefer-at': [2, { getLastElementFunctions: [], checkAllIndexAccess: false }],
677
+ 'unicorn-js/prefer-await': [2],
678
+ 'unicorn/prefer-bigint-literals': [2],
679
+ 'unicorn/prefer-blob-reading-methods': [2],
680
+ 'unicorn-js/prefer-block-statement-over-iife': [2],
681
+ 'unicorn-js/prefer-boolean-return': [2],
682
+ 'unicorn/prefer-class-fields': [2],
683
+ 'unicorn/prefer-classlist-toggle': [2],
684
+ 'unicorn/prefer-code-point': [2],
685
+ 'unicorn-js/prefer-continue': [2, { maximumStatements: 1 }],
686
+ 'unicorn/prefer-date-now': [2],
687
+ 'unicorn/prefer-default-parameters': [2],
688
+ 'unicorn-js/prefer-direct-iteration': [2],
689
+ 'unicorn/prefer-dom-node-append': [2],
690
+ 'unicorn-js/prefer-dom-node-html-methods': [2, { checkGetHTML: true, checkSetHTML: false }],
691
+ 'unicorn/prefer-dom-node-remove': [2],
692
+ 'unicorn-js/prefer-dom-node-replace-children': [2],
693
+ 'unicorn/prefer-dom-node-text-content': [2],
694
+ 'unicorn-js/prefer-early-return': [2, { maximumStatements: 1 }],
695
+ 'unicorn-js/prefer-else-if': [2],
696
+ 'unicorn/prefer-event-target': [2],
697
+ 'unicorn/prefer-export-from': [2, { checkUsedVariables: true }],
698
+ 'unicorn-js/prefer-flat-math-min-max': [2],
699
+ 'unicorn-js/prefer-get-or-insert-computed': [2],
700
+ 'unicorn-js/prefer-global-number-constants': [2],
701
+ 'unicorn/prefer-global-this': [2],
702
+ 'unicorn-js/prefer-group-by': [2],
703
+ 'unicorn-js/prefer-has-check': [2],
704
+ 'unicorn-js/prefer-hoisting-branch-code': [2],
705
+ 'unicorn-js/prefer-https': [2, { ignore: [] }],
706
+ 'unicorn-js/prefer-identifier-import-export-specifiers': [2],
707
+ 'unicorn/prefer-includes': [2],
708
+ 'unicorn-js/prefer-includes-over-repeated-comparisons': [2, { minimumComparisons: 3 }],
709
+ 'unicorn-js/prefer-iterable-in-constructor': [2],
710
+ 'unicorn-js/prefer-iterator-helpers': [2],
711
+ 'unicorn-js/prefer-iterator-to-array': [2],
712
+ 'unicorn-js/prefer-iterator-to-array-at-end': [2],
713
+ 'unicorn/prefer-keyboard-event-key': [2],
714
+ 'unicorn-js/prefer-location-assign': [2],
715
+ 'unicorn/prefer-logical-operator-over-ternary': [2],
716
+ 'unicorn-js/prefer-map-from-entries': [2],
717
+ 'unicorn-js/prefer-math-abs': [2],
718
+ 'unicorn-js/prefer-math-constants': [2],
719
+ 'unicorn/prefer-math-min-max': [2],
720
+ 'unicorn/prefer-math-trunc': [2],
721
+ 'unicorn-js/prefer-minimal-ternary': [2, { checkVaryingBase: false, checkComputedMemberAccess: false }],
722
+ 'unicorn/prefer-modern-dom-apis': [2],
723
+ 'unicorn/prefer-modern-math-apis': [2],
724
+ 'unicorn/prefer-module': [2],
725
+ 'unicorn/prefer-native-coercion-functions': [2],
726
+ 'unicorn/prefer-negative-index': [2],
727
+ 'unicorn/prefer-node-protocol': [2],
728
+ 'unicorn/prefer-number-coercion': [2],
729
+ 'unicorn-js/prefer-number-is-safe-integer': [2],
730
+ 'unicorn/prefer-number-properties': [2, { checkInfinity: false, checkNaN: false }],
731
+ 'unicorn-js/prefer-object-define-properties': [2],
732
+ 'unicorn-js/prefer-object-destructuring-defaults': [2],
733
+ 'unicorn/prefer-object-from-entries': [2, { functions: [] }],
734
+ 'unicorn-js/prefer-object-iterable-methods': [2],
735
+ 'unicorn-js/prefer-observer-apis': [2],
736
+ 'unicorn/prefer-optional-catch-binding': [2],
737
+ 'unicorn-js/prefer-path2d': [2],
738
+ 'unicorn-js/prefer-promise-try': [2],
739
+ 'unicorn-js/prefer-promise-with-resolvers': [2],
740
+ 'unicorn-js/prefer-prototype-methods': [2],
741
+ 'unicorn-js/prefer-query-selector': [2, { allowWithVariables: false }],
742
+ 'unicorn-js/prefer-queue-microtask': [2, { checkSetImmediate: false, checkSetTimeout: false }],
743
+ 'unicorn/prefer-reflect-apply': [2],
744
+ 'unicorn-js/prefer-regexp-test': [2],
745
+ 'unicorn/prefer-response-static-json': [2],
746
+ 'unicorn-js/prefer-scoped-selector': [2],
747
+ 'unicorn-js/prefer-set-has': [2, { minimumItems: 0 }],
748
+ 'unicorn-js/prefer-set-methods': [2],
749
+ 'unicorn/prefer-set-size': [2],
750
+ 'unicorn-js/prefer-simple-condition-first': [2],
751
+ 'unicorn-js/prefer-simple-sort-comparator': [2],
752
+ 'unicorn-js/prefer-simplified-conditions': [2],
753
+ 'unicorn-js/prefer-single-array-predicate': [2],
754
+ 'unicorn/prefer-single-call': [2, { ignore: [] }],
755
+ 'unicorn-js/prefer-single-object-destructuring': [2],
756
+ 'unicorn-js/prefer-single-replace': [2],
757
+ 'unicorn-js/prefer-smaller-scope': [2],
758
+ 'unicorn-js/prefer-split-limit': [2],
759
+ 'unicorn/prefer-spread': [2],
760
+ 'unicorn-js/prefer-string-match-all': [2],
761
+ 'unicorn-js/prefer-string-pad-start-end': [2],
762
+ 'unicorn-js/prefer-string-raw': [2],
763
+ 'unicorn-js/prefer-string-repeat': [2, { minimumRepetitions: 3 }],
764
+ 'unicorn/prefer-string-replace-all': [2],
765
+ 'unicorn/prefer-string-slice': [2],
766
+ 'unicorn-js/prefer-string-starts-ends-with': [2],
767
+ 'unicorn/prefer-string-trim-start-end': [2],
768
+ 'unicorn-js/prefer-structured-clone': [2, { functions: [] }],
769
+ 'unicorn-js/prefer-switch': [2, { minimumCases: 3, emptyDefaultCase: 'no-default-comment' }],
770
+ 'unicorn/prefer-ternary': [2, 'always'],
771
+ 'unicorn-js/prefer-then-catch': [2],
772
+ 'unicorn-js/prefer-toggle-attribute': [2],
773
+ 'unicorn/prefer-top-level-await': [2],
774
+ 'unicorn/prefer-type-error': [2],
775
+ 'unicorn-js/prefer-type-literal-last': [2],
776
+ 'unicorn-js/prefer-unary-minus': [2],
777
+ 'unicorn-js/prefer-unicode-code-point-escapes': [2],
778
+ 'unicorn-js/prefer-url-can-parse': [2],
779
+ 'unicorn-js/prefer-url-href': [2],
780
+ 'unicorn-js/prefer-url-search-parameters': [2],
781
+ 'unicorn-js/prefer-while-loop-condition': [2],
782
+ 'unicorn/relative-url-style': [2, 'never'],
783
+ 'unicorn/require-array-join-separator': [2],
784
+ 'unicorn-js/require-array-sort-compare': [2],
785
+ 'unicorn-js/require-css-escape': [2, { checkAllSelectors: false }],
786
+ 'unicorn/require-module-attributes': [2],
787
+ 'unicorn/require-module-specifiers': [2],
788
+ 'unicorn/require-number-to-fixed-digits-argument': [2],
789
+ 'unicorn-js/require-passive-events': [2],
790
+ 'unicorn-js/require-proxy-trap-boolean-return': [2],
791
+ 'unicorn-js/single-line-block-comment-style': [2, 'multiline', { ignore: [] }],
792
+ 'unicorn/switch-case-braces': [2, 'always'],
793
+ 'unicorn/switch-case-break-position': [2],
794
+ 'unicorn-js/template-indent': [
795
+ 2,
796
+ {
797
+ tags: ['outdent', 'dedent', 'gql', 'sql', 'html', 'styled'],
798
+ functions: ['dedent', 'stripIndent'],
799
+ selectors: [],
800
+ comments: ['HTML', 'indent'],
801
+ },
802
+ ],
803
+ 'unicorn/text-encoding-identifier-case': [2, { withDash: false }],
804
+ 'unicorn/throw-new-error': [2],
805
+ 'eslint/use-isnan': [2, { enforceForIndexOf: false, enforceForSwitchCase: true }],
806
+ 'eslint/valid-typeof': [2, { requireStringLiterals: false }],
807
+ 'eslint/no-var': 'off',
808
+ 'eslint/prefer-rest-params': 'off',
809
+ 'eslint/prefer-spread': 'off',
810
+ },
811
+ globals: {
812
+ AggregateError: 'readonly',
813
+ Array: 'readonly',
814
+ ArrayBuffer: 'readonly',
815
+ AsyncDisposableStack: 'readonly',
816
+ Atomics: 'readonly',
817
+ BigInt: 'readonly',
818
+ BigInt64Array: 'readonly',
819
+ BigUint64Array: 'readonly',
820
+ Boolean: 'readonly',
821
+ DataView: 'readonly',
822
+ Date: 'readonly',
823
+ decodeURI: 'readonly',
824
+ decodeURIComponent: 'readonly',
825
+ DisposableStack: 'readonly',
826
+ encodeURI: 'readonly',
827
+ encodeURIComponent: 'readonly',
828
+ Error: 'readonly',
829
+ escape: 'readonly',
830
+ eval: 'readonly',
831
+ EvalError: 'readonly',
832
+ FinalizationRegistry: 'readonly',
833
+ Float16Array: 'readonly',
834
+ Float32Array: 'readonly',
835
+ Float64Array: 'readonly',
836
+ Function: 'readonly',
837
+ globalThis: 'readonly',
838
+ Infinity: 'readonly',
839
+ Int16Array: 'readonly',
840
+ Int32Array: 'readonly',
841
+ Int8Array: 'readonly',
842
+ Intl: 'readonly',
843
+ isFinite: 'readonly',
844
+ isNaN: 'readonly',
845
+ Iterator: 'readonly',
846
+ JSON: 'readonly',
847
+ Map: 'readonly',
848
+ Math: 'readonly',
849
+ NaN: 'readonly',
850
+ Number: 'readonly',
851
+ Object: 'readonly',
852
+ parseFloat: 'readonly',
853
+ parseInt: 'readonly',
854
+ Promise: 'readonly',
855
+ Proxy: 'readonly',
856
+ RangeError: 'readonly',
857
+ ReferenceError: 'readonly',
858
+ Reflect: 'readonly',
859
+ RegExp: 'readonly',
860
+ Set: 'readonly',
861
+ SharedArrayBuffer: 'readonly',
862
+ String: 'readonly',
863
+ SuppressedError: 'readonly',
864
+ Symbol: 'readonly',
865
+ SyntaxError: 'readonly',
866
+ TypeError: 'readonly',
867
+ Uint16Array: 'readonly',
868
+ Uint32Array: 'readonly',
869
+ Uint8Array: 'readonly',
870
+ Uint8ClampedArray: 'readonly',
871
+ undefined: 'readonly',
872
+ unescape: 'readonly',
873
+ URIError: 'readonly',
874
+ WeakMap: 'readonly',
875
+ WeakRef: 'readonly',
876
+ WeakSet: 'readonly',
877
+ },
878
+ },
879
+ de6241fa04ffc18f: {
880
+ rules: {
881
+ 'stylistic-js/lines-between-class-members': [
882
+ 2,
883
+ 'always',
884
+ { exceptAfterOverload: true, exceptAfterSingleLine: true },
885
+ ],
886
+ 'stylistic-js/padding-line-between-statements': [
887
+ 2,
888
+ { blankLine: 'always', prev: '*', next: 'if' },
889
+ { blankLine: 'always', prev: 'if', next: 'if' },
890
+ { blankLine: 'always', prev: ['const', 'let'], next: '*' },
891
+ { blankLine: 'any', prev: ['const', 'let'], next: ['const', 'let'] },
892
+ { blankLine: 'always', prev: '*', next: 'return' },
893
+ { blankLine: 'always', prev: '*', next: 'case' },
894
+ { blankLine: 'always', prev: 'if', next: '*' },
895
+ ],
896
+ 'stylistic-js/spaced-comment': [2, 'always'],
897
+ 'typescript/adjacent-overload-signatures': [2],
898
+ 'typescript-js/array-type': [2],
899
+ 'typescript/ban-ts-comment': [
900
+ 2,
901
+ { 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
902
+ ],
903
+ 'typescript/ban-tslint-comment': [2],
904
+ 'typescript/class-literal-property-style': [2],
905
+ 'typescript/consistent-generic-constructors': [2],
906
+ 'typescript/consistent-indexed-object-style': [2],
907
+ 'typescript/consistent-type-assertions': [2],
908
+ 'typescript/consistent-type-definitions': [2, 'type'],
909
+ 'typescript/consistent-type-imports': [2, { fixStyle: 'inline-type-imports' }],
910
+ 'eslint/no-array-constructor': [2],
911
+ 'typescript/no-confusing-non-null-assertion': [2],
912
+ 'typescript/no-duplicate-enum-values': [2],
913
+ 'eslint/no-empty-function': [2, { allow: [] }],
914
+ 'typescript/no-empty-object-type': [2],
915
+ 'typescript/no-explicit-any': [2],
916
+ 'typescript/no-extra-non-null-assertion': [2],
917
+ 'typescript/no-inferrable-types': [2],
918
+ 'typescript/no-misused-new': [2],
919
+ 'typescript/no-namespace': [2],
920
+ 'typescript/no-non-null-asserted-optional-chain': [2],
921
+ 'typescript/no-require-imports': [2],
922
+ 'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
923
+ 'typescript/no-this-alias': [2],
924
+ 'typescript/no-unnecessary-type-constraint': [2],
925
+ 'typescript/no-unsafe-declaration-merging': [2],
926
+ 'typescript/no-unsafe-function-type': [2],
927
+ 'eslint/no-unused-expressions': [
928
+ 2,
929
+ { allowShortCircuit: false, allowTaggedTemplates: false, allowTernary: false },
930
+ ],
931
+ 'eslint/no-unused-vars': [2, { ignoreRestSiblings: true }],
932
+ 'typescript/no-wrapper-object-types': [2],
933
+ 'typescript-js/prefer-as-const': [2],
934
+ 'typescript/prefer-for-of': [2],
935
+ 'typescript/prefer-function-type': [2],
936
+ 'typescript/prefer-namespace-keyword': [2],
937
+ 'typescript/switch-exhaustiveness-check': [2],
938
+ 'typescript/triple-slash-reference': [2],
939
+ 'eslint/arrow-body-style': [2, 'as-needed'],
940
+ 'eslint-js/camelcase': [
941
+ 2,
942
+ { allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
943
+ ],
944
+ 'eslint/constructor-super': 'off',
945
+ 'eslint/for-direction': [2],
946
+ 'eslint/getter-return': 'off',
947
+ 'import/default': [2],
948
+ 'import/export': [2],
949
+ 'import/extensions': [2, 'never', { js: 'never', json: 'ignorePackages' }],
950
+ 'import/namespace': [2],
951
+ 'import/newline-after-import': [2],
952
+ 'import/no-duplicates': [2, { considerQueryString: true }],
953
+ 'import/no-named-as-default': [1],
954
+ 'import/no-named-as-default-member': [1],
955
+ 'import-x-js/no-unresolved': [2, { caseSensitive: true }],
956
+ 'import-x-js/order': [
957
+ 2,
958
+ {
959
+ 'newlines-between': 'always',
960
+ groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
961
+ pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
962
+ alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
963
+ distinctGroup: true,
964
+ sortTypesGroup: false,
965
+ named: false,
966
+ warnOnUnassignedImports: false,
967
+ },
968
+ ],
969
+ 'eslint-js/newline-before-return': [2],
970
+ 'eslint/no-async-promise-executor': [2],
971
+ 'eslint/no-case-declarations': [2],
972
+ 'eslint/no-class-assign': 'off',
973
+ 'eslint/no-compare-neg-zero': [2],
974
+ 'eslint/no-cond-assign': [2, 'except-parens'],
975
+ 'eslint/no-console': [1, {}],
976
+ 'eslint/no-const-assign': 'off',
977
+ 'eslint/no-constant-binary-expression': [2, { checkRelationalComparisons: false }],
978
+ 'eslint/no-constant-condition': [2, { checkLoops: 'allExceptWhileTrue' }],
979
+ 'eslint/no-control-regex': [2],
980
+ 'eslint/no-debugger': [1],
981
+ 'eslint/no-delete-var': [2],
982
+ 'eslint-js/no-dupe-args': 'off',
983
+ 'eslint/no-dupe-class-members': 'off',
984
+ 'eslint/no-dupe-else-if': [2],
985
+ 'eslint/no-dupe-keys': 'off',
986
+ 'eslint/no-duplicate-case': [2],
987
+ 'eslint/no-empty': [2, { allowEmptyCatch: false }],
988
+ 'eslint/no-empty-character-class': [2],
989
+ 'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
990
+ 'eslint/no-empty-static-block': [2],
991
+ 'eslint/no-ex-assign': [2],
992
+ 'eslint/no-extra-boolean-cast': [2, {}],
993
+ 'eslint/no-fallthrough': [2, { allowEmptyCase: false, reportUnusedFallthroughComment: false }],
994
+ 'eslint/no-func-assign': 'off',
995
+ 'eslint/no-global-assign': [2, { exceptions: [] }],
996
+ 'eslint/no-import-assign': 'off',
997
+ 'eslint/no-invalid-regexp': [2, {}],
998
+ 'eslint/no-irregular-whitespace': [
999
+ 2,
1000
+ { skipComments: false, skipJSXText: false, skipRegExps: false, skipStrings: true, skipTemplates: false },
1001
+ ],
1002
+ 'eslint/no-loss-of-precision': [2],
1003
+ 'eslint/no-misleading-character-class': [2, { allowEscape: false }],
1004
+ 'eslint/no-new-native-nonconstructor': 'off',
1005
+ 'eslint/no-nonoctal-decimal-escape': [2],
1006
+ 'eslint/no-obj-calls': 'off',
1007
+ 'eslint-js/no-octal': [2],
1008
+ 'eslint/no-prototype-builtins': [2],
1009
+ 'eslint/no-redeclare': 'off',
1010
+ 'eslint/no-regex-spaces': [2],
1011
+ 'eslint-js/no-restricted-syntax': [
1012
+ 2,
1013
+ { selector: 'WithStatement', message: '`with` statement are not allowed.' },
1014
+ { selector: 'ForInStatement', message: 'Use for..of instead.' },
1015
+ {
1016
+ selector: 'TSEnumDeclaration',
1017
+ message: "Don't declare enums, use type union of literal strings or constants.",
1018
+ },
1019
+ { selector: 'MemberExpression[object.name="React"]', message: 'Use named imports from react.' },
1020
+ {
1021
+ selector:
1022
+ 'CallExpression[callee.property.name="replaceAll"] > Literal[regex.flags=/^[^g]*$/].arguments:first-child',
1023
+ message: 'Missing "g" flag in regular expression.',
1024
+ },
1025
+ ],
1026
+ 'eslint/no-self-assign': [2, { props: true }],
1027
+ 'eslint/no-setter-return': 'off',
1028
+ 'eslint/no-shadow-restricted-names': [2, { reportGlobalThis: true }],
1029
+ 'eslint/no-sparse-arrays': [2],
1030
+ 'eslint/no-this-before-super': 'off',
1031
+ 'eslint/no-unassigned-vars': [2],
1032
+ 'eslint/no-unreachable': 'off',
1033
+ 'eslint/no-unsafe-finally': [2],
1034
+ 'eslint/no-unsafe-negation': 'off',
1035
+ 'eslint/no-unsafe-optional-chaining': [2, { disallowArithmeticOperators: false }],
1036
+ 'eslint/no-unused-labels': [2],
1037
+ 'eslint/no-unused-private-class-members': [2],
1038
+ 'eslint/no-useless-assignment': [2],
1039
+ 'eslint/no-useless-backreference': [2],
1040
+ 'eslint/no-useless-catch': [2],
1041
+ 'eslint/no-useless-escape': [2, { allowRegexCharacters: [] }],
1042
+ 'eslint/no-with': 'off',
1043
+ 'eslint/object-shorthand': [2, 'always'],
1044
+ 'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
1045
+ 'eslint/prefer-template': [2],
1046
+ 'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
1047
+ 'prettier/prettier': [2],
1048
+ 'eslint/require-yield': [2],
1049
+ 'sonarjs/assertions-in-test-cases': [2],
1050
+ 'sonarjs/async-test-assertions': [2],
1051
+ 'sonarjs/aws-apigateway-public-api': [2],
1052
+ 'sonarjs/aws-ec2-rds-dms-public': [2],
1053
+ 'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
1054
+ 'sonarjs/aws-efs-unencrypted': [2],
1055
+ 'sonarjs/aws-iam-all-privileges': [2],
1056
+ 'sonarjs/aws-iam-privilege-escalation': [2],
1057
+ 'sonarjs/aws-iam-public-access': [2],
1058
+ 'sonarjs/aws-opensearchservice-domain': [2],
1059
+ 'sonarjs/aws-rds-unencrypted-databases': [2],
1060
+ 'sonarjs/aws-restricted-ip-admin-access': [2],
1061
+ 'sonarjs/aws-s3-bucket-granted-access': [2],
1062
+ 'sonarjs/aws-s3-bucket-insecure-http': [2],
1063
+ 'sonarjs/aws-s3-bucket-public-access': [2],
1064
+ 'sonarjs/aws-s3-bucket-versioning': [2],
1065
+ 'sonarjs/aws-sagemaker-unencrypted-notebook': [2],
1066
+ 'sonarjs/aws-sns-unencrypted-topics': [2],
1067
+ 'sonarjs/aws-sqs-unencrypted-queue': [2],
1068
+ 'sonarjs/block-scoped-var': [2],
1069
+ 'sonarjs/call-argument-line': [2],
1070
+ 'sonarjs/chai-determinate-assertion': [2],
1071
+ 'sonarjs/class-name': [2, { format: '^\\$?[A-Z][a-zA-Z0-9]*$' }],
1072
+ 'sonarjs/code-eval': [2],
1073
+ 'sonarjs/cognitive-complexity': [2, 15],
1074
+ 'sonarjs/comma-or-logical-or-case': [2],
1075
+ 'sonarjs/constructor-for-side-effects': [2],
1076
+ 'sonarjs/content-length': [2, { fileUploadSizeLimit: 8000000, standardSizeLimit: 2000000 }],
1077
+ 'sonarjs/content-security-policy': [2],
1078
+ 'sonarjs/cookie-no-httponly': [2],
1079
+ 'sonarjs/cors': [2],
1080
+ 'sonarjs/csrf': [2],
1081
+ 'typescript/no-deprecated': [2],
1082
+ 'sonarjs/disabled-timeout': [2],
1083
+ 'sonarjs/dynamically-constructed-templates': [2],
1084
+ 'sonarjs/encryption-secure-mode': [2],
1085
+ 'sonarjs/explicit-test-skip': [2],
1086
+ 'sonarjs/file-permissions': [2],
1087
+ 'sonarjs/file-uploads': [2],
1088
+ 'sonarjs/fixme-tag': [2],
1089
+ 'sonarjs/for-loop-increment-sign': [2],
1090
+ 'sonarjs/function-inside-loop': [2],
1091
+ 'sonarjs/future-reserved-words': [2],
1092
+ 'sonarjs/generator-without-yield': [2],
1093
+ 'sonarjs/hardcoded-secret-signatures': [2],
1094
+ 'sonarjs/hashing': [2],
1095
+ 'sonarjs/hooks-before-test-cases': [2],
1096
+ 'sonarjs/inconsistent-function-call': [2],
1097
+ 'sonarjs/insecure-cookie': [2],
1098
+ 'sonarjs/insecure-jwt-token': [2],
1099
+ 'sonarjs/inverted-assertion-arguments': [2],
1100
+ 'sonarjs/label-position': [2],
1101
+ 'sonarjs/link-with-target-blank': [2],
1102
+ 'sonarjs/max-switch-cases': [2, 30],
1103
+ 'sonarjs/memoize-cache-key': [2],
1104
+ 'sonarjs/misplaced-loop-counter': [2],
1105
+ 'sonarjs/no-all-duplicated-branches': [2],
1106
+ 'typescript/require-array-sort-compare': [2],
1107
+ 'sonarjs/no-angular-bypass-sanitization': [2],
1108
+ 'typescript/no-array-delete': [2],
1109
+ 'sonarjs/no-case-label-in-switch': [2],
1110
+ 'sonarjs/no-clear-text-protocols': [2],
1111
+ 'sonarjs/no-code-after-done': [2],
1112
+ 'sonarjs/no-dead-store': [2],
1113
+ 'sonarjs/no-debug-commands-in-ui-tests': [2],
1114
+ 'sonarjs/no-default-utility-imports': [2],
1115
+ 'sonarjs/no-delete-var': [2],
1116
+ 'sonarjs/no-duplicate-in-composite': [2],
1117
+ 'sonarjs/no-duplicate-test-title': [2],
1118
+ 'sonarjs/no-duplicated-branches': [2],
1119
+ 'sonarjs/no-element-overwrite': [2],
1120
+ 'sonarjs/no-empty-collection': [2],
1121
+ 'sonarjs/no-empty-test-file': [2],
1122
+ 'sonarjs/no-empty-test-title': [2],
1123
+ 'sonarjs/no-equals-in-for-termination': [2],
1124
+ 'sonarjs/no-exclusive-tests': [2],
1125
+ 'sonarjs/no-extra-arguments': [2],
1126
+ 'sonarjs/no-fallthrough': [2],
1127
+ 'sonarjs/no-fixed-wait-in-tests': [2],
1128
+ 'sonarjs/no-floating-point-equality': [2],
1129
+ 'sonarjs/no-forced-browser-interaction': [2],
1130
+ 'sonarjs/no-global-this': [2],
1131
+ 'sonarjs/no-globals-shadowing': [2],
1132
+ 'sonarjs/no-gratuitous-expressions': [2],
1133
+ 'sonarjs/no-hardcoded-ip': [2],
1134
+ 'sonarjs/no-hardcoded-passwords': [2, { passwordWords: ['password', 'pwd', 'passwd', 'passphrase'] }],
1135
+ 'sonarjs/no-hardcoded-secrets': [
1136
+ 2,
1137
+ { secretWords: 'api[_.-]?key,auth,credential,secret,token', randomnessSensibility: 5 },
1138
+ ],
1139
+ 'sonarjs/no-hook-setter-in-body': [2],
1140
+ 'sonarjs/no-identical-conditions': [2],
1141
+ 'sonarjs/no-identical-expressions': [2],
1142
+ 'sonarjs/no-identical-functions': [2, 3],
1143
+ 'sonarjs/no-ignored-exceptions': [2],
1144
+ 'sonarjs/no-implicit-global': [2],
1145
+ 'sonarjs/no-incomplete-assertions': [2],
1146
+ 'sonarjs/no-internal-api-use': [2],
1147
+ 'sonarjs/no-interpolation-in-inline-snapshots': [2],
1148
+ 'sonarjs/no-invariant-returns': [2],
1149
+ 'sonarjs/no-inverted-boolean-check': [2],
1150
+ 'sonarjs/no-labels': [2],
1151
+ 'sonarjs/no-literal-call': [2],
1152
+ 'sonarjs/no-mime-sniff': [2],
1153
+ 'sonarjs/no-mixed-completion-style': [2],
1154
+ 'sonarjs/no-nested-assignment': [2],
1155
+ 'sonarjs/no-nested-conditional': [2],
1156
+ 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
1157
+ 'sonarjs/no-nested-template-literals': [2],
1158
+ 'sonarjs/no-os-command-from-path': [2],
1159
+ 'sonarjs/no-parameter-reassignment': [2],
1160
+ 'sonarjs/no-primitive-wrappers': [2],
1161
+ 'sonarjs/no-redundant-assignments': [2],
1162
+ 'sonarjs/no-redundant-boolean': [2],
1163
+ 'sonarjs/no-redundant-jump': [2],
1164
+ 'sonarjs/no-referrer-policy': [2],
1165
+ 'sonarjs/no-same-argument-assert': [2],
1166
+ 'sonarjs/no-same-line-conditional': [2],
1167
+ 'sonarjs/no-session-cookies-on-static-assets': [2],
1168
+ 'sonarjs/no-skipped-tests': [2],
1169
+ 'sonarjs/no-table-as-layout': [2],
1170
+ 'sonarjs/no-trivial-assertions': [2],
1171
+ 'sonarjs/no-unenclosed-multiline-block': [2],
1172
+ 'sonarjs/no-uniq-key': [2],
1173
+ 'sonarjs/no-unthrown-error': [2],
1174
+ 'sonarjs/no-unused-collection': [2],
1175
+ 'sonarjs/no-unused-vars': [2],
1176
+ 'sonarjs/no-use-of-empty-return-value': [2],
1177
+ 'sonarjs/no-useless-catch': [2],
1178
+ 'sonarjs/no-useless-increment': [2],
1179
+ 'sonarjs/no-useless-react-setstate': [2],
1180
+ 'sonarjs/no-weak-cipher': [2],
1181
+ 'sonarjs/no-weak-keys': [2],
1182
+ 'sonarjs/non-existent-operator': [2],
1183
+ 'sonarjs/object-alt-content': [2],
1184
+ 'sonarjs/parameterized-tests': [2],
1185
+ 'sonarjs/prefer-default-last': [2],
1186
+ 'sonarjs/prefer-native-lodash-alternative': [2],
1187
+ 'sonarjs/prefer-promise-shorthand': [2],
1188
+ 'typescript/prefer-regexp-exec': [2],
1189
+ 'sonarjs/prefer-single-boolean-return': [2],
1190
+ 'sonarjs/prefer-specific-assertions': [2],
1191
+ 'sonarjs/prefer-type-guard': [2],
1192
+ 'sonarjs/prefer-while': [2],
1193
+ 'sonarjs/production-debug': [2],
1194
+ 'sonarjs/pseudo-random': [2],
1195
+ 'sonarjs/public-static-readonly': [2],
1196
+ 'sonarjs/publicly-writable-directories': [2],
1197
+ 'sonarjs/redundant-type-aliases': [2],
1198
+ 'sonarjs/review-blockchain-mnemonic': [2],
1199
+ 'sonarjs/session-regeneration': [2],
1200
+ 'sonarjs/stable-tests': [2],
1201
+ 'sonarjs/stateful-regex': [2],
1202
+ 'sonarjs/strict-transport-security': [2],
1203
+ 'sonarjs/super-linear-regex': [2],
1204
+ 'sonarjs/synchronous-suite-callback': [2],
1205
+ 'sonarjs/table-header': [2],
1206
+ 'sonarjs/table-header-reference': [2],
1207
+ 'sonarjs/test-check-exception': [2],
1208
+ 'sonarjs/todo-tag': [1],
1209
+ 'sonarjs/unverified-certificate': [2],
1210
+ 'sonarjs/unverified-hostname': [2],
1211
+ 'sonarjs/updated-const-var': [2],
1212
+ 'sonarjs/updated-loop-counter': [2],
1213
+ 'sonarjs/use-type-alias': [2],
1214
+ 'sonarjs/weak-ssl': [2],
1215
+ 'sonarjs/x-powered-by': [2],
1216
+ 'sonarjs/xml-parser-xxe': [2],
1217
+ 'eslint/sort-imports': [
1218
+ 2,
1219
+ {
1220
+ allowSeparatedGroups: false,
1221
+ ignoreCase: false,
1222
+ ignoreDeclarationSort: true,
1223
+ ignoreMemberSort: false,
1224
+ memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
1225
+ },
1226
+ ],
1227
+ 'svelte/no-inner-declarations': [2, 'functions', { blockScopedFunctions: 'allow' }],
1228
+ 'svelte/no-inspect': [1],
1229
+ 'svelte/no-navigation-without-resolve': [2],
1230
+ 'svelte/no-store-async': [2],
1231
+ 'svelte/no-svelte-internal': [2],
1232
+ 'svelte/no-unnecessary-state-wrap': [2],
1233
+ 'svelte/prefer-svelte-reactivity': [2],
1234
+ 'svelte/prefer-writable-derived': [2],
1235
+ 'unicorn-js/better-dom-traversing': [2],
1236
+ 'unicorn/catch-error-name': [2, { name: 'error', ignore: [] }],
1237
+ 'unicorn-js/class-reference-in-static-methods': [2, { preferThis: true, preferSuper: true }],
1238
+ 'unicorn/consistent-assert': [2],
1239
+ 'unicorn-js/consistent-boolean-name': [
1240
+ 2,
1241
+ {
1242
+ checkVariables: 'always',
1243
+ checkArguments: 'always',
1244
+ checkFunctions: 'always',
1245
+ checkMethods: 'never',
1246
+ checkFields: 'never',
1247
+ ignore: [],
1248
+ wrappers: {},
1249
+ },
1250
+ ],
1251
+ 'unicorn-js/consistent-class-member-order': [
1252
+ 2,
1253
+ {
1254
+ order: [
1255
+ 'static-field',
1256
+ 'static-block',
1257
+ 'static-method',
1258
+ 'private-field',
1259
+ 'public-field',
1260
+ 'constructor',
1261
+ 'private-method',
1262
+ 'public-method',
1263
+ ],
1264
+ },
1265
+ ],
1266
+ 'unicorn-js/consistent-compound-words': [2, {}],
1267
+ 'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
1268
+ 'unicorn/consistent-date-clone': [2],
1269
+ 'unicorn-js/consistent-destructuring': [2],
1270
+ 'unicorn/consistent-empty-array-spread': [2],
1271
+ 'unicorn/consistent-existence-index-check': [2],
1272
+ 'unicorn-js/consistent-export-decorator-position': [2, 'above'],
1273
+ 'unicorn-js/consistent-function-scoping': [2, { checkArrowFunctions: true }],
1274
+ 'unicorn-js/consistent-json-file-read': [2, 'string'],
1275
+ 'unicorn-js/consistent-optional-chaining': [2],
1276
+ 'unicorn/consistent-template-literal-escape': [2],
1277
+ 'unicorn-js/consistent-tuple-labels': [2],
1278
+ 'unicorn/custom-error-definition': [2],
1279
+ 'unicorn-js/default-export-style': [2, { functions: 'inline', classes: 'inline' }],
1280
+ 'unicorn-js/dom-node-dataset': [2, { preferAttributes: false }],
1281
+ 'unicorn/empty-brace-spaces': [2],
1282
+ 'unicorn/error-message': [2],
1283
+ 'unicorn-js/escape-case': [2, 'uppercase'],
1284
+ 'unicorn-js/expiring-todo-comments': [
1285
+ 2,
1286
+ {
1287
+ terms: ['todo', 'fixme', 'xxx'],
1288
+ ignore: [],
1289
+ checkDates: false,
1290
+ checkDatesOnPullRequests: false,
1291
+ allowWarningComments: true,
1292
+ },
1293
+ ],
1294
+ 'unicorn/explicit-length-check': [2, { 'non-zero': 'greater-than' }],
1295
+ 'unicorn-js/explicit-timer-delay': [2, 'always'],
1296
+ 'unicorn/filename-case': [2],
1297
+ 'unicorn/import-style': [2, {}],
1298
+ 'unicorn-js/isolated-functions': [
1299
+ 2,
1300
+ { functions: ['makeSynchronous', 'workerize'], selectors: [], comments: ['@isolated'], overrideGlobals: {} },
1301
+ ],
1302
+ 'unicorn-js/logical-assignment-operators': [2, 'always'],
1303
+ 'unicorn/max-nested-calls': [2, { max: 3 }],
1304
+ 'unicorn-js/name-replacements': [
1305
+ 2,
1306
+ {
1307
+ replacements: {
1308
+ dev: false,
1309
+ prod: false,
1310
+ props: false,
1311
+ ref: false,
1312
+ refs: false,
1313
+ args: false,
1314
+ params: false,
1315
+ utils: false,
1316
+ env: false,
1317
+ },
1318
+ },
1319
+ ],
1320
+ 'unicorn/new-for-builtins': [2],
1321
+ 'unicorn/no-abusive-eslint-disable': [2],
1322
+ 'unicorn/no-accessor-recursion': [2],
1323
+ 'unicorn-js/no-accidental-bitwise-operator': [2],
1324
+ 'unicorn/no-anonymous-default-export': [2],
1325
+ 'unicorn-js/no-array-callback-reference': [2, { ignore: [] }],
1326
+ 'unicorn-js/no-array-concat-in-loop': [2],
1327
+ 'unicorn/no-array-fill-with-reference-type': [2],
1328
+ 'unicorn-js/no-array-from-fill': [2],
1329
+ 'unicorn/no-array-method-this-argument': [2],
1330
+ 'unicorn/no-array-reduce': [2, { allowSimpleOperations: true }],
1331
+ 'unicorn/no-array-reverse': [2, { allowExpressionStatement: true }],
1332
+ 'unicorn/no-array-sort': [2, { allowExpressionStatement: true }],
1333
+ 'unicorn-js/no-array-sort-for-min-max': [2],
1334
+ 'unicorn-js/no-array-splice': [2],
1335
+ 'unicorn-js/no-async-promise-finally': [2],
1336
+ 'unicorn/no-await-expression-member': [2],
1337
+ 'unicorn/no-await-in-promise-methods': [2],
1338
+ 'unicorn-js/no-boolean-sort-comparator': [2],
1339
+ 'unicorn-js/no-break-in-nested-loop': [2],
1340
+ 'unicorn-js/no-canvas-to-image': [2],
1341
+ 'unicorn-js/no-chained-comparison': [2],
1342
+ 'unicorn-js/no-collection-bracket-access': [2],
1343
+ 'unicorn-js/no-computed-property-existence-check': [2],
1344
+ 'unicorn-js/no-confusing-array-splice': [2],
1345
+ 'unicorn/no-confusing-array-with': [2],
1346
+ 'unicorn/no-console-spaces': [2],
1347
+ 'unicorn-js/no-constant-zero-expression': [2],
1348
+ 'unicorn-js/no-declarations-before-early-exit': [2],
1349
+ 'unicorn/no-document-cookie': [2],
1350
+ 'unicorn-js/no-double-comparison': [2],
1351
+ 'unicorn-js/no-duplicate-if-branches': [2],
1352
+ 'unicorn-js/no-duplicate-logical-operands': [2],
1353
+ 'unicorn-js/no-duplicate-loops': [2],
1354
+ 'unicorn-js/no-duplicate-set-values': [2],
1355
+ 'unicorn-js/no-empty-file': [2, { allowComments: false }],
1356
+ 'unicorn-js/no-error-property-assignment': [2],
1357
+ 'unicorn-js/no-exports-in-scripts': [2],
1358
+ 'unicorn-js/no-for-each': [2],
1359
+ 'unicorn-js/no-for-loop': [2],
1360
+ 'unicorn-js/no-global-object-property-assignment': [2],
1361
+ 'unicorn/no-immediate-mutation': [2],
1362
+ 'unicorn-js/no-impossible-length-comparison': [2],
1363
+ 'unicorn-js/no-incorrect-query-selector': [2],
1364
+ 'unicorn-js/no-incorrect-template-string-interpolation': [2],
1365
+ 'unicorn/no-instanceof-builtins': [2, { useErrorIsError: false, strategy: 'loose', include: [], exclude: [] }],
1366
+ 'unicorn-js/no-invalid-argument-count': [2, {}],
1367
+ 'unicorn-js/no-invalid-character-comparison': [2],
1368
+ 'unicorn/no-invalid-fetch-options': [2],
1369
+ 'unicorn/no-invalid-remove-event-listener': [2],
1370
+ 'unicorn-js/no-invalid-well-known-symbol-methods': [2],
1371
+ 'unicorn-js/no-late-current-target-access': [2],
1372
+ 'unicorn-js/no-late-event-control': [2],
1373
+ 'unicorn/no-lonely-if': [2],
1374
+ 'unicorn-js/no-loop-iterable-mutation': [2],
1375
+ 'unicorn/no-magic-array-flat-depth': [2],
1376
+ 'unicorn-js/no-mismatched-map-key': [2],
1377
+ 'unicorn-js/no-misrefactored-assignment': [2],
1378
+ 'unicorn-js/no-multiple-promise-resolver-calls': [2],
1379
+ 'unicorn-js/no-named-default': [2],
1380
+ 'unicorn-js/no-negated-array-predicate': [2],
1381
+ 'unicorn-js/no-negated-comparison': [2, { checkLogicalExpressions: false }],
1382
+ 'unicorn/no-negated-condition': [2],
1383
+ 'unicorn/no-negation-in-equality-check': [2],
1384
+ 'unicorn/no-nested-ternary': [2],
1385
+ 'unicorn/no-new-array': [2],
1386
+ 'unicorn/no-new-buffer': [2],
1387
+ 'unicorn-js/no-nonstandard-builtin-properties': [2],
1388
+ 'unicorn/no-object-as-default-parameter': [2],
1389
+ 'unicorn-js/no-object-methods-with-collections': [2],
1390
+ 'unicorn-js/no-optional-chaining-on-undeclared-variable': [2],
1391
+ 'unicorn/no-process-exit': [2],
1392
+ 'unicorn-js/no-redundant-comparison': [2],
1393
+ 'unicorn-js/no-return-array-push': [2],
1394
+ 'unicorn-js/no-selector-as-dom-name': [2],
1395
+ 'unicorn/no-single-promise-in-promise-methods': [2],
1396
+ 'unicorn/no-static-only-class': [2],
1397
+ 'unicorn-js/no-subtraction-comparison': [2],
1398
+ 'unicorn/no-thenable': [2],
1399
+ 'unicorn/no-this-assignment': [2],
1400
+ 'unicorn-js/no-this-outside-of-class': [2],
1401
+ 'unicorn-js/no-top-level-assignment-in-function': [2],
1402
+ 'unicorn-js/no-top-level-side-effects': [2],
1403
+ 'unicorn/no-typeof-undefined': [2, { checkGlobalVariables: false }],
1404
+ 'unicorn-js/no-uncalled-method': [2],
1405
+ 'unicorn-js/no-undeclared-class-members': [2],
1406
+ 'unicorn/no-unnecessary-array-flat-depth': [2],
1407
+ 'unicorn-js/no-unnecessary-array-flat-map': [2],
1408
+ 'unicorn/no-unnecessary-array-splice-count': [2],
1409
+ 'unicorn-js/no-unnecessary-await': [2],
1410
+ 'unicorn-js/no-unnecessary-boolean-comparison': [2],
1411
+ 'unicorn-js/no-unnecessary-fetch-options': [2],
1412
+ 'unicorn-js/no-unnecessary-global-this': [2],
1413
+ 'unicorn-js/no-unnecessary-nested-ternary': [2],
1414
+ 'unicorn-js/no-unnecessary-polyfills': [2, {}],
1415
+ 'unicorn/no-unnecessary-slice-end': [2],
1416
+ 'unicorn-js/no-unnecessary-splice': [2],
1417
+ 'unicorn-js/no-unnecessary-string-trim': [2],
1418
+ 'unicorn-js/no-unreadable-array-destructuring': [2, { maximumIgnoredElements: 1 }],
1419
+ 'unicorn-js/no-unreadable-for-of-expression': [2],
1420
+ 'unicorn/no-unreadable-iife': [2],
1421
+ 'unicorn-js/no-unreadable-object-destructuring': [2],
1422
+ 'unicorn-js/no-unsafe-buffer-conversion': [2],
1423
+ 'unicorn-js/no-unsafe-promise-all-settled-values': [2],
1424
+ 'unicorn-js/no-unsafe-property-key': [2],
1425
+ 'unicorn-js/no-unsafe-sqlite-interpolation': [2],
1426
+ 'unicorn-js/no-unsafe-string-replacement': [2],
1427
+ 'unicorn-js/no-unused-array-method-return': [2],
1428
+ 'unicorn-js/no-unused-properties': [2],
1429
+ 'unicorn-js/no-useless-boolean-cast': [2],
1430
+ 'unicorn-js/no-useless-coercion': [2],
1431
+ 'unicorn/no-useless-collection-argument': [2],
1432
+ 'unicorn-js/no-useless-compound-assignment': [2],
1433
+ 'unicorn-js/no-useless-concat': [2],
1434
+ 'unicorn-js/no-useless-continue': [2],
1435
+ 'unicorn-js/no-useless-delete-check': [2],
1436
+ 'unicorn-js/no-useless-else': [2],
1437
+ 'unicorn/no-useless-error-capture-stack-trace': [2],
1438
+ 'unicorn/no-useless-fallback-in-spread': [2],
1439
+ 'unicorn/no-useless-iterator-to-array': [2],
1440
+ 'unicorn/no-useless-length-check': [2],
1441
+ 'unicorn-js/no-useless-logical-operand': [2],
1442
+ 'unicorn-js/no-useless-override': [2],
1443
+ 'unicorn/no-useless-promise-resolve-reject': [2],
1444
+ 'unicorn-js/no-useless-re-export': [2],
1445
+ 'unicorn-js/no-useless-recursion': [2],
1446
+ 'unicorn/no-useless-spread': [2],
1447
+ 'unicorn/no-useless-switch-case': [2],
1448
+ 'unicorn-js/no-useless-template-literals': [2],
1449
+ 'unicorn/no-useless-undefined': [2, { checkArguments: true, checkArrowFunctionBody: true }],
1450
+ 'unicorn-js/no-xor-as-exponentiation': [2],
1451
+ 'unicorn/no-zero-fractions': [2],
1452
+ 'unicorn-js/number-literal-case': [2, { hexadecimalValue: 'uppercase' }],
1453
+ 'unicorn-js/numeric-separators-style': [
1454
+ 2,
1455
+ {
1456
+ onlyIfContainsSeparator: false,
1457
+ binary: { minimumDigits: 0, groupLength: 4 },
1458
+ octal: { minimumDigits: 0, groupLength: 4 },
1459
+ hexadecimal: { minimumDigits: 0, groupLength: 2 },
1460
+ number: { minimumDigits: 5, groupLength: 3 },
1461
+ },
1462
+ ],
1463
+ 'unicorn-js/operator-assignment': [2, 'always'],
1464
+ 'unicorn-js/prefer-abort-signal-any': [2],
1465
+ 'unicorn-js/prefer-abort-signal-timeout': [2],
1466
+ 'unicorn-js/prefer-add-event-listener': [2, { excludedPackages: ['koa', 'sax'] }],
1467
+ 'unicorn-js/prefer-add-event-listener-options': [2],
1468
+ 'unicorn-js/prefer-aggregate-error': [2],
1469
+ 'unicorn-js/prefer-array-find': [2, { checkFromLast: true }],
1470
+ 'unicorn-js/prefer-array-flat': [2, { functions: [] }],
1471
+ 'unicorn/prefer-array-flat-map': [2],
1472
+ 'unicorn-js/prefer-array-from-async': [2],
1473
+ 'unicorn-js/prefer-array-from-map': [2],
1474
+ 'unicorn-js/prefer-array-from-range': [2],
1475
+ 'unicorn/prefer-array-index-of': [2],
1476
+ 'unicorn-js/prefer-array-iterable-methods': [2],
1477
+ 'unicorn-js/prefer-array-last-methods': [2],
1478
+ 'unicorn-js/prefer-array-slice': [2],
1479
+ 'unicorn/prefer-array-some': [2],
1480
+ 'unicorn/prefer-at': [2, { getLastElementFunctions: [], checkAllIndexAccess: false }],
1481
+ 'unicorn-js/prefer-await': [2],
1482
+ 'unicorn/prefer-bigint-literals': [2],
1483
+ 'unicorn/prefer-blob-reading-methods': [2],
1484
+ 'unicorn-js/prefer-block-statement-over-iife': [2],
1485
+ 'unicorn-js/prefer-boolean-return': [2],
1486
+ 'unicorn/prefer-class-fields': [2],
1487
+ 'unicorn/prefer-classlist-toggle': [2],
1488
+ 'unicorn/prefer-code-point': [2],
1489
+ 'unicorn-js/prefer-continue': [2, { maximumStatements: 1 }],
1490
+ 'unicorn/prefer-date-now': [2],
1491
+ 'unicorn/prefer-default-parameters': [2],
1492
+ 'unicorn-js/prefer-direct-iteration': [2],
1493
+ 'unicorn/prefer-dom-node-append': [2],
1494
+ 'unicorn-js/prefer-dom-node-html-methods': [2, { checkGetHTML: true, checkSetHTML: false }],
1495
+ 'unicorn/prefer-dom-node-remove': [2],
1496
+ 'unicorn-js/prefer-dom-node-replace-children': [2],
1497
+ 'unicorn/prefer-dom-node-text-content': [2],
1498
+ 'unicorn-js/prefer-early-return': [2, { maximumStatements: 1 }],
1499
+ 'unicorn-js/prefer-else-if': [2],
1500
+ 'unicorn/prefer-event-target': [2],
1501
+ 'unicorn/prefer-export-from': [2, { checkUsedVariables: true }],
1502
+ 'unicorn-js/prefer-flat-math-min-max': [2],
1503
+ 'unicorn-js/prefer-get-or-insert-computed': [2],
1504
+ 'unicorn-js/prefer-global-number-constants': [2],
1505
+ 'unicorn/prefer-global-this': [2],
1506
+ 'unicorn-js/prefer-group-by': [2],
1507
+ 'unicorn-js/prefer-has-check': [2],
1508
+ 'unicorn-js/prefer-hoisting-branch-code': [2],
1509
+ 'unicorn-js/prefer-https': [2, { ignore: [] }],
1510
+ 'unicorn-js/prefer-identifier-import-export-specifiers': [2],
1511
+ 'unicorn/prefer-includes': [2],
1512
+ 'unicorn-js/prefer-includes-over-repeated-comparisons': [2, { minimumComparisons: 3 }],
1513
+ 'unicorn-js/prefer-iterable-in-constructor': [2],
1514
+ 'unicorn-js/prefer-iterator-helpers': [2],
1515
+ 'unicorn-js/prefer-iterator-to-array': [2],
1516
+ 'unicorn-js/prefer-iterator-to-array-at-end': [2],
1517
+ 'unicorn/prefer-keyboard-event-key': [2],
1518
+ 'unicorn-js/prefer-location-assign': [2],
1519
+ 'unicorn/prefer-logical-operator-over-ternary': [2],
1520
+ 'unicorn-js/prefer-map-from-entries': [2],
1521
+ 'unicorn-js/prefer-math-abs': [2],
1522
+ 'unicorn-js/prefer-math-constants': [2],
1523
+ 'unicorn/prefer-math-min-max': [2],
1524
+ 'unicorn/prefer-math-trunc': [2],
1525
+ 'unicorn-js/prefer-minimal-ternary': [2, { checkVaryingBase: false, checkComputedMemberAccess: false }],
1526
+ 'unicorn/prefer-modern-dom-apis': [2],
1527
+ 'unicorn/prefer-modern-math-apis': [2],
1528
+ 'unicorn/prefer-module': [2],
1529
+ 'unicorn/prefer-native-coercion-functions': [2],
1530
+ 'unicorn/prefer-negative-index': [2],
1531
+ 'unicorn/prefer-node-protocol': [2],
1532
+ 'unicorn/prefer-number-coercion': [2],
1533
+ 'unicorn-js/prefer-number-is-safe-integer': [2],
1534
+ 'unicorn/prefer-number-properties': [2, { checkInfinity: false, checkNaN: false }],
1535
+ 'unicorn-js/prefer-object-define-properties': [2],
1536
+ 'unicorn-js/prefer-object-destructuring-defaults': [2],
1537
+ 'unicorn/prefer-object-from-entries': [2, { functions: [] }],
1538
+ 'unicorn-js/prefer-object-iterable-methods': [2],
1539
+ 'unicorn-js/prefer-observer-apis': [2],
1540
+ 'unicorn/prefer-optional-catch-binding': [2],
1541
+ 'unicorn-js/prefer-path2d': [2],
1542
+ 'unicorn-js/prefer-promise-try': [2],
1543
+ 'unicorn-js/prefer-promise-with-resolvers': [2],
1544
+ 'unicorn-js/prefer-prototype-methods': [2],
1545
+ 'unicorn-js/prefer-query-selector': [2, { allowWithVariables: false }],
1546
+ 'unicorn-js/prefer-queue-microtask': [2, { checkSetImmediate: false, checkSetTimeout: false }],
1547
+ 'unicorn/prefer-reflect-apply': [2],
1548
+ 'unicorn-js/prefer-regexp-test': [2],
1549
+ 'unicorn/prefer-response-static-json': [2],
1550
+ 'unicorn-js/prefer-scoped-selector': [2],
1551
+ 'unicorn-js/prefer-set-has': [2, { minimumItems: 0 }],
1552
+ 'unicorn-js/prefer-set-methods': [2],
1553
+ 'unicorn/prefer-set-size': [2],
1554
+ 'unicorn-js/prefer-simple-condition-first': [2],
1555
+ 'unicorn-js/prefer-simple-sort-comparator': [2],
1556
+ 'unicorn-js/prefer-simplified-conditions': [2],
1557
+ 'unicorn-js/prefer-single-array-predicate': [2],
1558
+ 'unicorn/prefer-single-call': [2, { ignore: [] }],
1559
+ 'unicorn-js/prefer-single-object-destructuring': [2],
1560
+ 'unicorn-js/prefer-single-replace': [2],
1561
+ 'unicorn-js/prefer-smaller-scope': [2],
1562
+ 'unicorn-js/prefer-split-limit': [2],
1563
+ 'unicorn/prefer-spread': [2],
1564
+ 'unicorn-js/prefer-string-match-all': [2],
1565
+ 'unicorn-js/prefer-string-pad-start-end': [2],
1566
+ 'unicorn-js/prefer-string-raw': [2],
1567
+ 'unicorn-js/prefer-string-repeat': [2, { minimumRepetitions: 3 }],
1568
+ 'unicorn/prefer-string-replace-all': [2],
1569
+ 'unicorn/prefer-string-slice': [2],
1570
+ 'unicorn-js/prefer-string-starts-ends-with': [2],
1571
+ 'unicorn/prefer-string-trim-start-end': [2],
1572
+ 'unicorn-js/prefer-structured-clone': [2, { functions: [] }],
1573
+ 'unicorn-js/prefer-switch': [2, { minimumCases: 3, emptyDefaultCase: 'no-default-comment' }],
1574
+ 'unicorn/prefer-ternary': [2, 'always'],
1575
+ 'unicorn-js/prefer-then-catch': [2],
1576
+ 'unicorn-js/prefer-toggle-attribute': [2],
1577
+ 'unicorn/prefer-top-level-await': [2],
1578
+ 'unicorn/prefer-type-error': [2],
1579
+ 'unicorn-js/prefer-type-literal-last': [2],
1580
+ 'unicorn-js/prefer-unary-minus': [2],
1581
+ 'unicorn-js/prefer-unicode-code-point-escapes': [2],
1582
+ 'unicorn-js/prefer-url-can-parse': [2],
1583
+ 'unicorn-js/prefer-url-href': [2],
1584
+ 'unicorn-js/prefer-url-search-parameters': [2],
1585
+ 'unicorn-js/prefer-while-loop-condition': [2],
1586
+ 'unicorn/relative-url-style': [2, 'never'],
1587
+ 'unicorn/require-array-join-separator': [2],
1588
+ 'unicorn-js/require-array-sort-compare': [2],
1589
+ 'unicorn-js/require-css-escape': [2, { checkAllSelectors: false }],
1590
+ 'unicorn/require-module-attributes': [2],
1591
+ 'unicorn/require-module-specifiers': [2],
1592
+ 'unicorn/require-number-to-fixed-digits-argument': [2],
1593
+ 'unicorn-js/require-passive-events': [2],
1594
+ 'unicorn-js/require-proxy-trap-boolean-return': [2],
1595
+ 'unicorn-js/single-line-block-comment-style': [2, 'multiline', { ignore: [] }],
1596
+ 'unicorn/switch-case-braces': [2, 'always'],
1597
+ 'unicorn/switch-case-break-position': [2],
1598
+ 'unicorn-js/template-indent': [
1599
+ 2,
1600
+ {
1601
+ tags: ['outdent', 'dedent', 'gql', 'sql', 'html', 'styled'],
1602
+ functions: ['dedent', 'stripIndent'],
1603
+ selectors: [],
1604
+ comments: ['HTML', 'indent'],
1605
+ },
1606
+ ],
1607
+ 'unicorn/text-encoding-identifier-case': [2, { withDash: false }],
1608
+ 'unicorn/throw-new-error': [2],
1609
+ 'eslint/use-isnan': [2, { enforceForIndexOf: false, enforceForSwitchCase: true }],
1610
+ 'eslint/valid-typeof': [2, { requireStringLiterals: false }],
1611
+ 'eslint/no-var': [2],
1612
+ 'eslint/prefer-rest-params': [2],
1613
+ 'eslint/prefer-spread': [2],
1614
+ },
1615
+ globals: {
1616
+ AggregateError: 'readonly',
1617
+ Array: 'readonly',
1618
+ ArrayBuffer: 'readonly',
1619
+ AsyncDisposableStack: 'readonly',
1620
+ Atomics: 'readonly',
1621
+ BigInt: 'readonly',
1622
+ BigInt64Array: 'readonly',
1623
+ BigUint64Array: 'readonly',
1624
+ Boolean: 'readonly',
1625
+ DataView: 'readonly',
1626
+ Date: 'readonly',
1627
+ decodeURI: 'readonly',
1628
+ decodeURIComponent: 'readonly',
1629
+ DisposableStack: 'readonly',
1630
+ encodeURI: 'readonly',
1631
+ encodeURIComponent: 'readonly',
1632
+ Error: 'readonly',
1633
+ escape: 'readonly',
1634
+ eval: 'readonly',
1635
+ EvalError: 'readonly',
1636
+ FinalizationRegistry: 'readonly',
1637
+ Float16Array: 'readonly',
1638
+ Float32Array: 'readonly',
1639
+ Float64Array: 'readonly',
1640
+ Function: 'readonly',
1641
+ globalThis: 'readonly',
1642
+ Infinity: 'readonly',
1643
+ Int16Array: 'readonly',
1644
+ Int32Array: 'readonly',
1645
+ Int8Array: 'readonly',
1646
+ Intl: 'readonly',
1647
+ isFinite: 'readonly',
1648
+ isNaN: 'readonly',
1649
+ Iterator: 'readonly',
1650
+ JSON: 'readonly',
1651
+ Map: 'readonly',
1652
+ Math: 'readonly',
1653
+ NaN: 'readonly',
1654
+ Number: 'readonly',
1655
+ Object: 'readonly',
1656
+ parseFloat: 'readonly',
1657
+ parseInt: 'readonly',
1658
+ Promise: 'readonly',
1659
+ Proxy: 'readonly',
1660
+ RangeError: 'readonly',
1661
+ ReferenceError: 'readonly',
1662
+ Reflect: 'readonly',
1663
+ RegExp: 'readonly',
1664
+ Set: 'readonly',
1665
+ SharedArrayBuffer: 'readonly',
1666
+ String: 'readonly',
1667
+ SuppressedError: 'readonly',
1668
+ Symbol: 'readonly',
1669
+ SyntaxError: 'readonly',
1670
+ TypeError: 'readonly',
1671
+ Uint16Array: 'readonly',
1672
+ Uint32Array: 'readonly',
1673
+ Uint8Array: 'readonly',
1674
+ Uint8ClampedArray: 'readonly',
1675
+ undefined: 'readonly',
1676
+ unescape: 'readonly',
1677
+ URIError: 'readonly',
1678
+ WeakMap: 'readonly',
1679
+ WeakRef: 'readonly',
1680
+ WeakSet: 'readonly',
1681
+ },
1682
+ },
1683
+ e9517a4ebff6ecbc: {
1684
+ rules: {
1685
+ 'stylistic-js/lines-between-class-members': [
1686
+ 2,
1687
+ 'always',
1688
+ { exceptAfterOverload: true, exceptAfterSingleLine: true },
1689
+ ],
1690
+ 'stylistic-js/padding-line-between-statements': [
1691
+ 2,
1692
+ { blankLine: 'always', prev: '*', next: 'if' },
1693
+ { blankLine: 'always', prev: 'if', next: 'if' },
1694
+ { blankLine: 'always', prev: ['const', 'let'], next: '*' },
1695
+ { blankLine: 'any', prev: ['const', 'let'], next: ['const', 'let'] },
1696
+ { blankLine: 'always', prev: '*', next: 'return' },
1697
+ { blankLine: 'always', prev: '*', next: 'case' },
1698
+ { blankLine: 'always', prev: 'if', next: '*' },
1699
+ ],
1700
+ 'stylistic-js/spaced-comment': [2, 'always'],
1701
+ 'typescript/adjacent-overload-signatures': [2],
1702
+ 'typescript-js/array-type': [2],
1703
+ 'typescript/ban-ts-comment': [
1704
+ 2,
1705
+ { 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
1706
+ ],
1707
+ 'typescript/ban-tslint-comment': [2],
1708
+ 'typescript/class-literal-property-style': [2],
1709
+ 'typescript/consistent-generic-constructors': [2],
1710
+ 'typescript/consistent-indexed-object-style': [2],
1711
+ 'typescript/consistent-type-assertions': [2],
1712
+ 'typescript/consistent-type-definitions': [2, 'type'],
1713
+ 'typescript/consistent-type-imports': 'off',
1714
+ 'eslint/no-array-constructor': [2],
1715
+ 'typescript/no-confusing-non-null-assertion': [2],
1716
+ 'typescript/no-duplicate-enum-values': [2],
1717
+ 'eslint/no-empty-function': [2, { allow: [] }],
1718
+ 'typescript/no-empty-object-type': [2],
1719
+ 'typescript/no-explicit-any': [2],
1720
+ 'typescript/no-extra-non-null-assertion': [2],
1721
+ 'typescript/no-inferrable-types': [2],
1722
+ 'typescript/no-misused-new': [2],
1723
+ 'typescript/no-namespace': [2],
1724
+ 'typescript/no-non-null-asserted-optional-chain': [2],
1725
+ 'typescript/no-require-imports': [2],
1726
+ 'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
1727
+ 'typescript/no-this-alias': [2],
1728
+ 'typescript/no-unnecessary-type-constraint': [2],
1729
+ 'typescript/no-unsafe-declaration-merging': [2],
1730
+ 'typescript/no-unsafe-function-type': [2],
1731
+ 'eslint/no-unused-expressions': [
1732
+ 2,
1733
+ { allowShortCircuit: false, allowTaggedTemplates: false, allowTernary: false },
1734
+ ],
1735
+ 'eslint/no-unused-vars': 'off',
1736
+ 'typescript/no-wrapper-object-types': [2],
1737
+ 'typescript-js/prefer-as-const': [2],
1738
+ 'typescript/prefer-for-of': [2],
1739
+ 'typescript/prefer-function-type': [2],
1740
+ 'typescript/prefer-namespace-keyword': [2],
1741
+ 'typescript/switch-exhaustiveness-check': 'off',
1742
+ 'typescript/triple-slash-reference': [2],
1743
+ 'eslint/arrow-body-style': [2, 'as-needed'],
1744
+ 'eslint-js/camelcase': [
1745
+ 2,
1746
+ { allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
1747
+ ],
1748
+ 'eslint/constructor-super': [2],
1749
+ 'eslint/for-direction': [2],
1750
+ 'eslint/getter-return': [2, { allowImplicit: false }],
1751
+ 'import/default': [2],
1752
+ 'import/export': [2],
1753
+ 'import/extensions': [2, 'never', { js: 'never', json: 'ignorePackages' }],
1754
+ 'import/namespace': [2],
1755
+ 'import/newline-after-import': [2],
1756
+ 'import/no-duplicates': [2, { considerQueryString: true }],
1757
+ 'import/no-named-as-default': [1],
1758
+ 'import/no-named-as-default-member': [1],
1759
+ 'import-x-js/no-unresolved': [2, { caseSensitive: true }],
1760
+ 'import-x-js/order': [
1761
+ 2,
1762
+ {
1763
+ 'newlines-between': 'always',
1764
+ groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
1765
+ pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
1766
+ alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
1767
+ distinctGroup: true,
1768
+ sortTypesGroup: false,
1769
+ named: false,
1770
+ warnOnUnassignedImports: false,
1771
+ },
1772
+ ],
1773
+ 'eslint-js/newline-before-return': [2],
1774
+ 'eslint/no-async-promise-executor': [2],
1775
+ 'eslint/no-case-declarations': [2],
1776
+ 'eslint/no-class-assign': [2],
1777
+ 'eslint/no-compare-neg-zero': [2],
1778
+ 'eslint/no-cond-assign': [2, 'except-parens'],
1779
+ 'eslint/no-console': [1, {}],
1780
+ 'eslint/no-const-assign': [2],
1781
+ 'eslint/no-constant-binary-expression': [2, { checkRelationalComparisons: false }],
1782
+ 'eslint/no-constant-condition': [2, { checkLoops: 'allExceptWhileTrue' }],
1783
+ 'eslint/no-control-regex': [2],
1784
+ 'eslint/no-debugger': [1],
1785
+ 'eslint/no-delete-var': [2],
1786
+ 'eslint-js/no-dupe-args': [2],
1787
+ 'eslint/no-dupe-class-members': [2],
1788
+ 'eslint/no-dupe-else-if': [2],
1789
+ 'eslint/no-dupe-keys': [2],
1790
+ 'eslint/no-duplicate-case': [2],
1791
+ 'eslint/no-empty': [2, { allowEmptyCatch: false }],
1792
+ 'eslint/no-empty-character-class': [2],
1793
+ 'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
1794
+ 'eslint/no-empty-static-block': [2],
1795
+ 'eslint/no-ex-assign': [2],
1796
+ 'eslint/no-extra-boolean-cast': [2, {}],
1797
+ 'eslint/no-fallthrough': [2, { allowEmptyCase: false, reportUnusedFallthroughComment: false }],
1798
+ 'eslint/no-func-assign': [2],
1799
+ 'eslint/no-global-assign': [2, { exceptions: [] }],
1800
+ 'eslint/no-import-assign': [2],
1801
+ 'eslint/no-invalid-regexp': [2, {}],
1802
+ 'eslint/no-irregular-whitespace': [
1803
+ 2,
1804
+ { skipComments: false, skipJSXText: false, skipRegExps: false, skipStrings: true, skipTemplates: false },
1805
+ ],
1806
+ 'eslint/no-loss-of-precision': [2],
1807
+ 'eslint/no-misleading-character-class': [2, { allowEscape: false }],
1808
+ 'eslint/no-new-native-nonconstructor': [2],
1809
+ 'eslint/no-nonoctal-decimal-escape': [2],
1810
+ 'eslint/no-obj-calls': [2],
1811
+ 'eslint-js/no-octal': [2],
1812
+ 'eslint/no-prototype-builtins': [2],
1813
+ 'eslint/no-redeclare': [2, { builtinGlobals: true }],
1814
+ 'eslint/no-regex-spaces': [2],
1815
+ 'eslint-js/no-restricted-syntax': [
1816
+ 2,
1817
+ { selector: 'WithStatement', message: '`with` statement are not allowed.' },
1818
+ { selector: 'ForInStatement', message: 'Use for..of instead.' },
1819
+ {
1820
+ selector: 'TSEnumDeclaration',
1821
+ message: "Don't declare enums, use type union of literal strings or constants.",
1822
+ },
1823
+ { selector: 'MemberExpression[object.name="React"]', message: 'Use named imports from react.' },
1824
+ {
1825
+ selector:
1826
+ 'CallExpression[callee.property.name="replaceAll"] > Literal[regex.flags=/^[^g]*$/].arguments:first-child',
1827
+ message: 'Missing "g" flag in regular expression.',
1828
+ },
1829
+ ],
1830
+ 'eslint/no-self-assign': [2, { props: true }],
1831
+ 'eslint/no-setter-return': [2],
1832
+ 'eslint/no-shadow-restricted-names': [2, { reportGlobalThis: true }],
1833
+ 'eslint/no-sparse-arrays': [2],
1834
+ 'eslint/no-this-before-super': [2],
1835
+ 'eslint/no-unassigned-vars': [2],
1836
+ 'eslint/no-unreachable': [2],
1837
+ 'eslint/no-unsafe-finally': [2],
1838
+ 'eslint/no-unsafe-negation': [2, { enforceForOrderingRelations: false }],
1839
+ 'eslint/no-unsafe-optional-chaining': [2, { disallowArithmeticOperators: false }],
1840
+ 'eslint/no-unused-labels': [2],
1841
+ 'eslint/no-unused-private-class-members': [2],
1842
+ 'eslint/no-useless-assignment': [2],
1843
+ 'eslint/no-useless-backreference': [2],
1844
+ 'eslint/no-useless-catch': [2],
1845
+ 'eslint/no-useless-escape': [2, { allowRegexCharacters: [] }],
1846
+ 'eslint/no-with': [2],
1847
+ 'eslint/object-shorthand': [2, 'always'],
1848
+ 'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
1849
+ 'eslint/prefer-template': [2],
1850
+ 'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
1851
+ 'prettier/prettier': [2],
1852
+ 'eslint/require-yield': [2],
1853
+ 'sonarjs/assertions-in-test-cases': [2],
1854
+ 'sonarjs/async-test-assertions': [2],
1855
+ 'sonarjs/aws-apigateway-public-api': [2],
1856
+ 'sonarjs/aws-ec2-rds-dms-public': [2],
1857
+ 'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
1858
+ 'sonarjs/aws-efs-unencrypted': [2],
1859
+ 'sonarjs/aws-iam-all-privileges': [2],
1860
+ 'sonarjs/aws-iam-privilege-escalation': [2],
1861
+ 'sonarjs/aws-iam-public-access': [2],
1862
+ 'sonarjs/aws-opensearchservice-domain': [2],
1863
+ 'sonarjs/aws-rds-unencrypted-databases': [2],
1864
+ 'sonarjs/aws-restricted-ip-admin-access': [2],
1865
+ 'sonarjs/aws-s3-bucket-granted-access': [2],
1866
+ 'sonarjs/aws-s3-bucket-insecure-http': [2],
1867
+ 'sonarjs/aws-s3-bucket-public-access': [2],
1868
+ 'sonarjs/aws-s3-bucket-versioning': [2],
1869
+ 'sonarjs/aws-sagemaker-unencrypted-notebook': [2],
1870
+ 'sonarjs/aws-sns-unencrypted-topics': [2],
1871
+ 'sonarjs/aws-sqs-unencrypted-queue': [2],
1872
+ 'sonarjs/block-scoped-var': [2],
1873
+ 'sonarjs/call-argument-line': [2],
1874
+ 'sonarjs/chai-determinate-assertion': [2],
1875
+ 'sonarjs/class-name': [2, { format: '^\\$?[A-Z][a-zA-Z0-9]*$' }],
1876
+ 'sonarjs/code-eval': [2],
1877
+ 'sonarjs/cognitive-complexity': [2, 15],
1878
+ 'sonarjs/comma-or-logical-or-case': [2],
1879
+ 'sonarjs/constructor-for-side-effects': [2],
1880
+ 'sonarjs/content-length': [2, { fileUploadSizeLimit: 8000000, standardSizeLimit: 2000000 }],
1881
+ 'sonarjs/content-security-policy': [2],
1882
+ 'sonarjs/cookie-no-httponly': [2],
1883
+ 'sonarjs/cors': [2],
1884
+ 'sonarjs/csrf': [2],
1885
+ 'typescript/no-deprecated': 'off',
1886
+ 'sonarjs/disabled-timeout': [2],
1887
+ 'sonarjs/dynamically-constructed-templates': [2],
1888
+ 'sonarjs/encryption-secure-mode': [2],
1889
+ 'sonarjs/explicit-test-skip': [2],
1890
+ 'sonarjs/file-permissions': [2],
1891
+ 'sonarjs/file-uploads': [2],
1892
+ 'sonarjs/fixme-tag': [2],
1893
+ 'sonarjs/for-loop-increment-sign': [2],
1894
+ 'sonarjs/function-inside-loop': [2],
1895
+ 'sonarjs/future-reserved-words': [2],
1896
+ 'sonarjs/generator-without-yield': [2],
1897
+ 'sonarjs/hardcoded-secret-signatures': [2],
1898
+ 'sonarjs/hashing': [2],
1899
+ 'sonarjs/hooks-before-test-cases': [2],
1900
+ 'sonarjs/inconsistent-function-call': [2],
1901
+ 'sonarjs/insecure-cookie': [2],
1902
+ 'sonarjs/insecure-jwt-token': [2],
1903
+ 'sonarjs/inverted-assertion-arguments': [2],
1904
+ 'sonarjs/label-position': [2],
1905
+ 'sonarjs/link-with-target-blank': [2],
1906
+ 'sonarjs/max-switch-cases': [2, 30],
1907
+ 'sonarjs/memoize-cache-key': [2],
1908
+ 'sonarjs/misplaced-loop-counter': [2],
1909
+ 'sonarjs/no-all-duplicated-branches': [2],
1910
+ 'typescript/require-array-sort-compare': 'off',
1911
+ 'sonarjs/no-angular-bypass-sanitization': [2],
1912
+ 'typescript/no-array-delete': 'off',
1913
+ 'sonarjs/no-case-label-in-switch': [2],
1914
+ 'sonarjs/no-clear-text-protocols': [2],
1915
+ 'sonarjs/no-code-after-done': [2],
1916
+ 'sonarjs/no-dead-store': [2],
1917
+ 'sonarjs/no-debug-commands-in-ui-tests': [2],
1918
+ 'sonarjs/no-default-utility-imports': [2],
1919
+ 'sonarjs/no-delete-var': [2],
1920
+ 'sonarjs/no-duplicate-in-composite': [2],
1921
+ 'sonarjs/no-duplicate-test-title': [2],
1922
+ 'sonarjs/no-duplicated-branches': [2],
1923
+ 'sonarjs/no-element-overwrite': [2],
1924
+ 'sonarjs/no-empty-collection': [2],
1925
+ 'sonarjs/no-empty-test-file': [2],
1926
+ 'sonarjs/no-empty-test-title': [2],
1927
+ 'sonarjs/no-equals-in-for-termination': [2],
1928
+ 'sonarjs/no-exclusive-tests': [2],
1929
+ 'sonarjs/no-extra-arguments': [2],
1930
+ 'sonarjs/no-fallthrough': [2],
1931
+ 'sonarjs/no-fixed-wait-in-tests': [2],
1932
+ 'sonarjs/no-floating-point-equality': [2],
1933
+ 'sonarjs/no-forced-browser-interaction': [2],
1934
+ 'sonarjs/no-global-this': [2],
1935
+ 'sonarjs/no-globals-shadowing': [2],
1936
+ 'sonarjs/no-gratuitous-expressions': [2],
1937
+ 'sonarjs/no-hardcoded-ip': [2],
1938
+ 'sonarjs/no-hardcoded-passwords': [2, { passwordWords: ['password', 'pwd', 'passwd', 'passphrase'] }],
1939
+ 'sonarjs/no-hardcoded-secrets': [
1940
+ 2,
1941
+ { secretWords: 'api[_.-]?key,auth,credential,secret,token', randomnessSensibility: 5 },
1942
+ ],
1943
+ 'sonarjs/no-hook-setter-in-body': [2],
1944
+ 'sonarjs/no-identical-conditions': [2],
1945
+ 'sonarjs/no-identical-expressions': [2],
1946
+ 'sonarjs/no-identical-functions': [2, 3],
1947
+ 'sonarjs/no-ignored-exceptions': [2],
1948
+ 'sonarjs/no-implicit-global': [2],
1949
+ 'sonarjs/no-incomplete-assertions': [2],
1950
+ 'sonarjs/no-internal-api-use': [2],
1951
+ 'sonarjs/no-interpolation-in-inline-snapshots': [2],
1952
+ 'sonarjs/no-invariant-returns': [2],
1953
+ 'sonarjs/no-inverted-boolean-check': [2],
1954
+ 'sonarjs/no-labels': [2],
1955
+ 'sonarjs/no-literal-call': [2],
1956
+ 'sonarjs/no-mime-sniff': [2],
1957
+ 'sonarjs/no-mixed-completion-style': [2],
1958
+ 'sonarjs/no-nested-assignment': [2],
1959
+ 'sonarjs/no-nested-conditional': [2],
1960
+ 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
1961
+ 'sonarjs/no-nested-template-literals': [2],
1962
+ 'sonarjs/no-os-command-from-path': [2],
1963
+ 'sonarjs/no-parameter-reassignment': [2],
1964
+ 'sonarjs/no-primitive-wrappers': [2],
1965
+ 'sonarjs/no-redundant-assignments': [2],
1966
+ 'sonarjs/no-redundant-boolean': [2],
1967
+ 'sonarjs/no-redundant-jump': [2],
1968
+ 'sonarjs/no-referrer-policy': [2],
1969
+ 'sonarjs/no-same-argument-assert': [2],
1970
+ 'sonarjs/no-same-line-conditional': [2],
1971
+ 'sonarjs/no-session-cookies-on-static-assets': [2],
1972
+ 'sonarjs/no-skipped-tests': [2],
1973
+ 'sonarjs/no-table-as-layout': [2],
1974
+ 'sonarjs/no-trivial-assertions': [2],
1975
+ 'sonarjs/no-unenclosed-multiline-block': [2],
1976
+ 'sonarjs/no-uniq-key': [2],
1977
+ 'sonarjs/no-unthrown-error': [2],
1978
+ 'sonarjs/no-unused-collection': [2],
1979
+ 'sonarjs/no-unused-vars': 'off',
1980
+ 'sonarjs/no-use-of-empty-return-value': [2],
1981
+ 'sonarjs/no-useless-catch': [2],
1982
+ 'sonarjs/no-useless-increment': [2],
1983
+ 'sonarjs/no-useless-react-setstate': [2],
1984
+ 'sonarjs/no-weak-cipher': [2],
1985
+ 'sonarjs/no-weak-keys': [2],
1986
+ 'sonarjs/non-existent-operator': [2],
1987
+ 'sonarjs/object-alt-content': [2],
1988
+ 'sonarjs/parameterized-tests': [2],
1989
+ 'sonarjs/prefer-default-last': [2],
1990
+ 'sonarjs/prefer-native-lodash-alternative': [2],
1991
+ 'sonarjs/prefer-promise-shorthand': [2],
1992
+ 'typescript/prefer-regexp-exec': 'off',
1993
+ 'sonarjs/prefer-single-boolean-return': [2],
1994
+ 'sonarjs/prefer-specific-assertions': [2],
1995
+ 'sonarjs/prefer-type-guard': [2],
1996
+ 'sonarjs/prefer-while': [2],
1997
+ 'sonarjs/production-debug': [2],
1998
+ 'sonarjs/pseudo-random': [2],
1999
+ 'sonarjs/public-static-readonly': [2],
2000
+ 'sonarjs/publicly-writable-directories': [2],
2001
+ 'sonarjs/redundant-type-aliases': [2],
2002
+ 'sonarjs/review-blockchain-mnemonic': [2],
2003
+ 'sonarjs/session-regeneration': [2],
2004
+ 'sonarjs/stable-tests': [2],
2005
+ 'sonarjs/stateful-regex': [2],
2006
+ 'sonarjs/strict-transport-security': [2],
2007
+ 'sonarjs/super-linear-regex': [2],
2008
+ 'sonarjs/synchronous-suite-callback': [2],
2009
+ 'sonarjs/table-header': [2],
2010
+ 'sonarjs/table-header-reference': [2],
2011
+ 'sonarjs/test-check-exception': [2],
2012
+ 'sonarjs/todo-tag': [1],
2013
+ 'sonarjs/unverified-certificate': [2],
2014
+ 'sonarjs/unverified-hostname': [2],
2015
+ 'sonarjs/updated-const-var': [2],
2016
+ 'sonarjs/updated-loop-counter': [2],
2017
+ 'sonarjs/use-type-alias': [2],
2018
+ 'sonarjs/weak-ssl': [2],
2019
+ 'sonarjs/x-powered-by': [2],
2020
+ 'sonarjs/xml-parser-xxe': [2],
2021
+ 'eslint/sort-imports': [
2022
+ 2,
2023
+ {
2024
+ allowSeparatedGroups: false,
2025
+ ignoreCase: false,
2026
+ ignoreDeclarationSort: true,
2027
+ ignoreMemberSort: false,
2028
+ memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
2029
+ },
2030
+ ],
2031
+ 'svelte/no-inner-declarations': [2, 'functions', { blockScopedFunctions: 'allow' }],
2032
+ 'svelte/no-inspect': [1],
2033
+ 'svelte/no-navigation-without-resolve': [2],
2034
+ 'svelte/no-store-async': [2],
2035
+ 'svelte/no-svelte-internal': [2],
2036
+ 'svelte/no-unnecessary-state-wrap': [2],
2037
+ 'svelte/prefer-svelte-reactivity': [2],
2038
+ 'svelte/prefer-writable-derived': [2],
2039
+ 'unicorn-js/better-dom-traversing': [2],
2040
+ 'unicorn/catch-error-name': [2, { name: 'error', ignore: [] }],
2041
+ 'unicorn-js/class-reference-in-static-methods': [2, { preferThis: true, preferSuper: true }],
2042
+ 'unicorn/consistent-assert': [2],
2043
+ 'unicorn-js/consistent-boolean-name': [
2044
+ 2,
2045
+ {
2046
+ checkVariables: 'always',
2047
+ checkArguments: 'always',
2048
+ checkFunctions: 'always',
2049
+ checkMethods: 'never',
2050
+ checkFields: 'never',
2051
+ ignore: [],
2052
+ wrappers: {},
2053
+ },
2054
+ ],
2055
+ 'unicorn-js/consistent-class-member-order': [
2056
+ 2,
2057
+ {
2058
+ order: [
2059
+ 'static-field',
2060
+ 'static-block',
2061
+ 'static-method',
2062
+ 'private-field',
2063
+ 'public-field',
2064
+ 'constructor',
2065
+ 'private-method',
2066
+ 'public-method',
2067
+ ],
2068
+ },
2069
+ ],
2070
+ 'unicorn-js/consistent-compound-words': [2, {}],
2071
+ 'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
2072
+ 'unicorn/consistent-date-clone': [2],
2073
+ 'unicorn-js/consistent-destructuring': [2],
2074
+ 'unicorn/consistent-empty-array-spread': [2],
2075
+ 'unicorn/consistent-existence-index-check': [2],
2076
+ 'unicorn-js/consistent-export-decorator-position': [2, 'above'],
2077
+ 'unicorn-js/consistent-function-scoping': [2, { checkArrowFunctions: true }],
2078
+ 'unicorn-js/consistent-json-file-read': [2, 'string'],
2079
+ 'unicorn-js/consistent-optional-chaining': [2],
2080
+ 'unicorn/consistent-template-literal-escape': [2],
2081
+ 'unicorn-js/consistent-tuple-labels': [2],
2082
+ 'unicorn/custom-error-definition': [2],
2083
+ 'unicorn-js/default-export-style': [2, { functions: 'inline', classes: 'inline' }],
2084
+ 'unicorn-js/dom-node-dataset': [2, { preferAttributes: false }],
2085
+ 'unicorn/empty-brace-spaces': [2],
2086
+ 'unicorn/error-message': [2],
2087
+ 'unicorn-js/escape-case': [2, 'uppercase'],
2088
+ 'unicorn-js/expiring-todo-comments': [
2089
+ 2,
2090
+ {
2091
+ terms: ['todo', 'fixme', 'xxx'],
2092
+ ignore: [],
2093
+ checkDates: false,
2094
+ checkDatesOnPullRequests: false,
2095
+ allowWarningComments: true,
2096
+ },
2097
+ ],
2098
+ 'unicorn/explicit-length-check': [2, { 'non-zero': 'greater-than' }],
2099
+ 'unicorn-js/explicit-timer-delay': [2, 'always'],
2100
+ 'unicorn/filename-case': [2],
2101
+ 'unicorn/import-style': [2, {}],
2102
+ 'unicorn-js/isolated-functions': [
2103
+ 2,
2104
+ { functions: ['makeSynchronous', 'workerize'], selectors: [], comments: ['@isolated'], overrideGlobals: {} },
2105
+ ],
2106
+ 'unicorn-js/logical-assignment-operators': [2, 'always'],
2107
+ 'unicorn/max-nested-calls': [2, { max: 3 }],
2108
+ 'unicorn-js/name-replacements': [
2109
+ 2,
2110
+ {
2111
+ replacements: {
2112
+ dev: false,
2113
+ prod: false,
2114
+ props: false,
2115
+ ref: false,
2116
+ refs: false,
2117
+ args: false,
2118
+ params: false,
2119
+ utils: false,
2120
+ env: false,
2121
+ },
2122
+ },
2123
+ ],
2124
+ 'unicorn/new-for-builtins': [2],
2125
+ 'unicorn/no-abusive-eslint-disable': [2],
2126
+ 'unicorn/no-accessor-recursion': [2],
2127
+ 'unicorn-js/no-accidental-bitwise-operator': [2],
2128
+ 'unicorn/no-anonymous-default-export': [2],
2129
+ 'unicorn-js/no-array-callback-reference': [2, { ignore: [] }],
2130
+ 'unicorn-js/no-array-concat-in-loop': [2],
2131
+ 'unicorn/no-array-fill-with-reference-type': [2],
2132
+ 'unicorn-js/no-array-from-fill': [2],
2133
+ 'unicorn/no-array-method-this-argument': [2],
2134
+ 'unicorn/no-array-reduce': [2, { allowSimpleOperations: true }],
2135
+ 'unicorn/no-array-reverse': [2, { allowExpressionStatement: true }],
2136
+ 'unicorn/no-array-sort': [2, { allowExpressionStatement: true }],
2137
+ 'unicorn-js/no-array-sort-for-min-max': [2],
2138
+ 'unicorn-js/no-array-splice': [2],
2139
+ 'unicorn-js/no-async-promise-finally': [2],
2140
+ 'unicorn/no-await-expression-member': [2],
2141
+ 'unicorn/no-await-in-promise-methods': [2],
2142
+ 'unicorn-js/no-boolean-sort-comparator': [2],
2143
+ 'unicorn-js/no-break-in-nested-loop': [2],
2144
+ 'unicorn-js/no-canvas-to-image': [2],
2145
+ 'unicorn-js/no-chained-comparison': [2],
2146
+ 'unicorn-js/no-collection-bracket-access': [2],
2147
+ 'unicorn-js/no-computed-property-existence-check': [2],
2148
+ 'unicorn-js/no-confusing-array-splice': [2],
2149
+ 'unicorn/no-confusing-array-with': [2],
2150
+ 'unicorn/no-console-spaces': [2],
2151
+ 'unicorn-js/no-constant-zero-expression': [2],
2152
+ 'unicorn-js/no-declarations-before-early-exit': [2],
2153
+ 'unicorn/no-document-cookie': [2],
2154
+ 'unicorn-js/no-double-comparison': [2],
2155
+ 'unicorn-js/no-duplicate-if-branches': [2],
2156
+ 'unicorn-js/no-duplicate-logical-operands': [2],
2157
+ 'unicorn-js/no-duplicate-loops': [2],
2158
+ 'unicorn-js/no-duplicate-set-values': [2],
2159
+ 'unicorn-js/no-empty-file': [2, { allowComments: false }],
2160
+ 'unicorn-js/no-error-property-assignment': [2],
2161
+ 'unicorn-js/no-exports-in-scripts': [2],
2162
+ 'unicorn-js/no-for-each': [2],
2163
+ 'unicorn-js/no-for-loop': [2],
2164
+ 'unicorn-js/no-global-object-property-assignment': [2],
2165
+ 'unicorn/no-immediate-mutation': [2],
2166
+ 'unicorn-js/no-impossible-length-comparison': [2],
2167
+ 'unicorn-js/no-incorrect-query-selector': [2],
2168
+ 'unicorn-js/no-incorrect-template-string-interpolation': [2],
2169
+ 'unicorn/no-instanceof-builtins': [2, { useErrorIsError: false, strategy: 'loose', include: [], exclude: [] }],
2170
+ 'unicorn-js/no-invalid-argument-count': [2, {}],
2171
+ 'unicorn-js/no-invalid-character-comparison': [2],
2172
+ 'unicorn/no-invalid-fetch-options': [2],
2173
+ 'unicorn/no-invalid-remove-event-listener': [2],
2174
+ 'unicorn-js/no-invalid-well-known-symbol-methods': [2],
2175
+ 'unicorn-js/no-late-current-target-access': [2],
2176
+ 'unicorn-js/no-late-event-control': [2],
2177
+ 'unicorn/no-lonely-if': [2],
2178
+ 'unicorn-js/no-loop-iterable-mutation': [2],
2179
+ 'unicorn/no-magic-array-flat-depth': [2],
2180
+ 'unicorn-js/no-mismatched-map-key': [2],
2181
+ 'unicorn-js/no-misrefactored-assignment': [2],
2182
+ 'unicorn-js/no-multiple-promise-resolver-calls': [2],
2183
+ 'unicorn-js/no-named-default': [2],
2184
+ 'unicorn-js/no-negated-array-predicate': [2],
2185
+ 'unicorn-js/no-negated-comparison': [2, { checkLogicalExpressions: false }],
2186
+ 'unicorn/no-negated-condition': [2],
2187
+ 'unicorn/no-negation-in-equality-check': [2],
2188
+ 'unicorn/no-nested-ternary': [2],
2189
+ 'unicorn/no-new-array': [2],
2190
+ 'unicorn/no-new-buffer': [2],
2191
+ 'unicorn-js/no-nonstandard-builtin-properties': [2],
2192
+ 'unicorn/no-object-as-default-parameter': [2],
2193
+ 'unicorn-js/no-object-methods-with-collections': [2],
2194
+ 'unicorn-js/no-optional-chaining-on-undeclared-variable': [2],
2195
+ 'unicorn/no-process-exit': [2],
2196
+ 'unicorn-js/no-redundant-comparison': [2],
2197
+ 'unicorn-js/no-return-array-push': [2],
2198
+ 'unicorn-js/no-selector-as-dom-name': [2],
2199
+ 'unicorn/no-single-promise-in-promise-methods': [2],
2200
+ 'unicorn/no-static-only-class': [2],
2201
+ 'unicorn-js/no-subtraction-comparison': [2],
2202
+ 'unicorn/no-thenable': [2],
2203
+ 'unicorn/no-this-assignment': [2],
2204
+ 'unicorn-js/no-this-outside-of-class': [2],
2205
+ 'unicorn-js/no-top-level-assignment-in-function': [2],
2206
+ 'unicorn-js/no-top-level-side-effects': [2],
2207
+ 'unicorn/no-typeof-undefined': [2, { checkGlobalVariables: false }],
2208
+ 'unicorn-js/no-uncalled-method': [2],
2209
+ 'unicorn-js/no-undeclared-class-members': [2],
2210
+ 'unicorn/no-unnecessary-array-flat-depth': [2],
2211
+ 'unicorn-js/no-unnecessary-array-flat-map': [2],
2212
+ 'unicorn/no-unnecessary-array-splice-count': [2],
2213
+ 'unicorn-js/no-unnecessary-await': [2],
2214
+ 'unicorn-js/no-unnecessary-boolean-comparison': [2],
2215
+ 'unicorn-js/no-unnecessary-fetch-options': [2],
2216
+ 'unicorn-js/no-unnecessary-global-this': [2],
2217
+ 'unicorn-js/no-unnecessary-nested-ternary': [2],
2218
+ 'unicorn-js/no-unnecessary-polyfills': [2, {}],
2219
+ 'unicorn/no-unnecessary-slice-end': [2],
2220
+ 'unicorn-js/no-unnecessary-splice': [2],
2221
+ 'unicorn-js/no-unnecessary-string-trim': [2],
2222
+ 'unicorn-js/no-unreadable-array-destructuring': [2, { maximumIgnoredElements: 1 }],
2223
+ 'unicorn-js/no-unreadable-for-of-expression': [2],
2224
+ 'unicorn/no-unreadable-iife': [2],
2225
+ 'unicorn-js/no-unreadable-object-destructuring': [2],
2226
+ 'unicorn-js/no-unsafe-buffer-conversion': [2],
2227
+ 'unicorn-js/no-unsafe-promise-all-settled-values': [2],
2228
+ 'unicorn-js/no-unsafe-property-key': [2],
2229
+ 'unicorn-js/no-unsafe-sqlite-interpolation': [2],
2230
+ 'unicorn-js/no-unsafe-string-replacement': [2],
2231
+ 'unicorn-js/no-unused-array-method-return': [2],
2232
+ 'unicorn-js/no-unused-properties': [2],
2233
+ 'unicorn-js/no-useless-boolean-cast': [2],
2234
+ 'unicorn-js/no-useless-coercion': [2],
2235
+ 'unicorn/no-useless-collection-argument': [2],
2236
+ 'unicorn-js/no-useless-compound-assignment': [2],
2237
+ 'unicorn-js/no-useless-concat': [2],
2238
+ 'unicorn-js/no-useless-continue': [2],
2239
+ 'unicorn-js/no-useless-delete-check': [2],
2240
+ 'unicorn-js/no-useless-else': [2],
2241
+ 'unicorn/no-useless-error-capture-stack-trace': [2],
2242
+ 'unicorn/no-useless-fallback-in-spread': [2],
2243
+ 'unicorn/no-useless-iterator-to-array': [2],
2244
+ 'unicorn/no-useless-length-check': [2],
2245
+ 'unicorn-js/no-useless-logical-operand': [2],
2246
+ 'unicorn-js/no-useless-override': [2],
2247
+ 'unicorn/no-useless-promise-resolve-reject': [2],
2248
+ 'unicorn-js/no-useless-re-export': [2],
2249
+ 'unicorn-js/no-useless-recursion': [2],
2250
+ 'unicorn/no-useless-spread': [2],
2251
+ 'unicorn/no-useless-switch-case': [2],
2252
+ 'unicorn-js/no-useless-template-literals': [2],
2253
+ 'unicorn/no-useless-undefined': [2, { checkArguments: true, checkArrowFunctionBody: true }],
2254
+ 'unicorn-js/no-xor-as-exponentiation': [2],
2255
+ 'unicorn/no-zero-fractions': [2],
2256
+ 'unicorn-js/number-literal-case': [2, { hexadecimalValue: 'uppercase' }],
2257
+ 'unicorn-js/numeric-separators-style': [
2258
+ 2,
2259
+ {
2260
+ onlyIfContainsSeparator: false,
2261
+ binary: { minimumDigits: 0, groupLength: 4 },
2262
+ octal: { minimumDigits: 0, groupLength: 4 },
2263
+ hexadecimal: { minimumDigits: 0, groupLength: 2 },
2264
+ number: { minimumDigits: 5, groupLength: 3 },
2265
+ },
2266
+ ],
2267
+ 'unicorn-js/operator-assignment': [2, 'always'],
2268
+ 'unicorn-js/prefer-abort-signal-any': [2],
2269
+ 'unicorn-js/prefer-abort-signal-timeout': [2],
2270
+ 'unicorn-js/prefer-add-event-listener': [2, { excludedPackages: ['koa', 'sax'] }],
2271
+ 'unicorn-js/prefer-add-event-listener-options': [2],
2272
+ 'unicorn-js/prefer-aggregate-error': [2],
2273
+ 'unicorn-js/prefer-array-find': [2, { checkFromLast: true }],
2274
+ 'unicorn-js/prefer-array-flat': [2, { functions: [] }],
2275
+ 'unicorn/prefer-array-flat-map': [2],
2276
+ 'unicorn-js/prefer-array-from-async': [2],
2277
+ 'unicorn-js/prefer-array-from-map': [2],
2278
+ 'unicorn-js/prefer-array-from-range': [2],
2279
+ 'unicorn/prefer-array-index-of': [2],
2280
+ 'unicorn-js/prefer-array-iterable-methods': [2],
2281
+ 'unicorn-js/prefer-array-last-methods': [2],
2282
+ 'unicorn-js/prefer-array-slice': [2],
2283
+ 'unicorn/prefer-array-some': [2],
2284
+ 'unicorn/prefer-at': [2, { getLastElementFunctions: [], checkAllIndexAccess: false }],
2285
+ 'unicorn-js/prefer-await': [2],
2286
+ 'unicorn/prefer-bigint-literals': [2],
2287
+ 'unicorn/prefer-blob-reading-methods': [2],
2288
+ 'unicorn-js/prefer-block-statement-over-iife': [2],
2289
+ 'unicorn-js/prefer-boolean-return': [2],
2290
+ 'unicorn/prefer-class-fields': [2],
2291
+ 'unicorn/prefer-classlist-toggle': [2],
2292
+ 'unicorn/prefer-code-point': [2],
2293
+ 'unicorn-js/prefer-continue': [2, { maximumStatements: 1 }],
2294
+ 'unicorn/prefer-date-now': [2],
2295
+ 'unicorn/prefer-default-parameters': [2],
2296
+ 'unicorn-js/prefer-direct-iteration': [2],
2297
+ 'unicorn/prefer-dom-node-append': [2],
2298
+ 'unicorn-js/prefer-dom-node-html-methods': [2, { checkGetHTML: true, checkSetHTML: false }],
2299
+ 'unicorn/prefer-dom-node-remove': [2],
2300
+ 'unicorn-js/prefer-dom-node-replace-children': [2],
2301
+ 'unicorn/prefer-dom-node-text-content': [2],
2302
+ 'unicorn-js/prefer-early-return': [2, { maximumStatements: 1 }],
2303
+ 'unicorn-js/prefer-else-if': [2],
2304
+ 'unicorn/prefer-event-target': [2],
2305
+ 'unicorn/prefer-export-from': [2, { checkUsedVariables: true }],
2306
+ 'unicorn-js/prefer-flat-math-min-max': [2],
2307
+ 'unicorn-js/prefer-get-or-insert-computed': [2],
2308
+ 'unicorn-js/prefer-global-number-constants': [2],
2309
+ 'unicorn/prefer-global-this': [2],
2310
+ 'unicorn-js/prefer-group-by': [2],
2311
+ 'unicorn-js/prefer-has-check': [2],
2312
+ 'unicorn-js/prefer-hoisting-branch-code': [2],
2313
+ 'unicorn-js/prefer-https': [2, { ignore: [] }],
2314
+ 'unicorn-js/prefer-identifier-import-export-specifiers': [2],
2315
+ 'unicorn/prefer-includes': [2],
2316
+ 'unicorn-js/prefer-includes-over-repeated-comparisons': [2, { minimumComparisons: 3 }],
2317
+ 'unicorn-js/prefer-iterable-in-constructor': [2],
2318
+ 'unicorn-js/prefer-iterator-helpers': [2],
2319
+ 'unicorn-js/prefer-iterator-to-array': [2],
2320
+ 'unicorn-js/prefer-iterator-to-array-at-end': [2],
2321
+ 'unicorn/prefer-keyboard-event-key': [2],
2322
+ 'unicorn-js/prefer-location-assign': [2],
2323
+ 'unicorn/prefer-logical-operator-over-ternary': [2],
2324
+ 'unicorn-js/prefer-map-from-entries': [2],
2325
+ 'unicorn-js/prefer-math-abs': [2],
2326
+ 'unicorn-js/prefer-math-constants': [2],
2327
+ 'unicorn/prefer-math-min-max': [2],
2328
+ 'unicorn/prefer-math-trunc': [2],
2329
+ 'unicorn-js/prefer-minimal-ternary': [2, { checkVaryingBase: false, checkComputedMemberAccess: false }],
2330
+ 'unicorn/prefer-modern-dom-apis': [2],
2331
+ 'unicorn/prefer-modern-math-apis': [2],
2332
+ 'unicorn/prefer-module': [2],
2333
+ 'unicorn/prefer-native-coercion-functions': [2],
2334
+ 'unicorn/prefer-negative-index': [2],
2335
+ 'unicorn/prefer-node-protocol': [2],
2336
+ 'unicorn/prefer-number-coercion': [2],
2337
+ 'unicorn-js/prefer-number-is-safe-integer': [2],
2338
+ 'unicorn/prefer-number-properties': [2, { checkInfinity: false, checkNaN: false }],
2339
+ 'unicorn-js/prefer-object-define-properties': [2],
2340
+ 'unicorn-js/prefer-object-destructuring-defaults': [2],
2341
+ 'unicorn/prefer-object-from-entries': [2, { functions: [] }],
2342
+ 'unicorn-js/prefer-object-iterable-methods': [2],
2343
+ 'unicorn-js/prefer-observer-apis': [2],
2344
+ 'unicorn/prefer-optional-catch-binding': [2],
2345
+ 'unicorn-js/prefer-path2d': [2],
2346
+ 'unicorn-js/prefer-promise-try': [2],
2347
+ 'unicorn-js/prefer-promise-with-resolvers': [2],
2348
+ 'unicorn-js/prefer-prototype-methods': [2],
2349
+ 'unicorn-js/prefer-query-selector': [2, { allowWithVariables: false }],
2350
+ 'unicorn-js/prefer-queue-microtask': [2, { checkSetImmediate: false, checkSetTimeout: false }],
2351
+ 'unicorn/prefer-reflect-apply': [2],
2352
+ 'unicorn-js/prefer-regexp-test': [2],
2353
+ 'unicorn/prefer-response-static-json': [2],
2354
+ 'unicorn-js/prefer-scoped-selector': [2],
2355
+ 'unicorn-js/prefer-set-has': [2, { minimumItems: 0 }],
2356
+ 'unicorn-js/prefer-set-methods': [2],
2357
+ 'unicorn/prefer-set-size': [2],
2358
+ 'unicorn-js/prefer-simple-condition-first': [2],
2359
+ 'unicorn-js/prefer-simple-sort-comparator': [2],
2360
+ 'unicorn-js/prefer-simplified-conditions': [2],
2361
+ 'unicorn-js/prefer-single-array-predicate': [2],
2362
+ 'unicorn/prefer-single-call': [2, { ignore: [] }],
2363
+ 'unicorn-js/prefer-single-object-destructuring': [2],
2364
+ 'unicorn-js/prefer-single-replace': [2],
2365
+ 'unicorn-js/prefer-smaller-scope': [2],
2366
+ 'unicorn-js/prefer-split-limit': [2],
2367
+ 'unicorn/prefer-spread': [2],
2368
+ 'unicorn-js/prefer-string-match-all': [2],
2369
+ 'unicorn-js/prefer-string-pad-start-end': [2],
2370
+ 'unicorn-js/prefer-string-raw': [2],
2371
+ 'unicorn-js/prefer-string-repeat': [2, { minimumRepetitions: 3 }],
2372
+ 'unicorn/prefer-string-replace-all': [2],
2373
+ 'unicorn/prefer-string-slice': [2],
2374
+ 'unicorn-js/prefer-string-starts-ends-with': [2],
2375
+ 'unicorn/prefer-string-trim-start-end': [2],
2376
+ 'unicorn-js/prefer-structured-clone': [2, { functions: [] }],
2377
+ 'unicorn-js/prefer-switch': [2, { minimumCases: 3, emptyDefaultCase: 'no-default-comment' }],
2378
+ 'unicorn/prefer-ternary': [2, 'always'],
2379
+ 'unicorn-js/prefer-then-catch': [2],
2380
+ 'unicorn-js/prefer-toggle-attribute': [2],
2381
+ 'unicorn/prefer-top-level-await': [2],
2382
+ 'unicorn/prefer-type-error': [2],
2383
+ 'unicorn-js/prefer-type-literal-last': [2],
2384
+ 'unicorn-js/prefer-unary-minus': [2],
2385
+ 'unicorn-js/prefer-unicode-code-point-escapes': [2],
2386
+ 'unicorn-js/prefer-url-can-parse': [2],
2387
+ 'unicorn-js/prefer-url-href': [2],
2388
+ 'unicorn-js/prefer-url-search-parameters': [2],
2389
+ 'unicorn-js/prefer-while-loop-condition': [2],
2390
+ 'unicorn/relative-url-style': [2, 'never'],
2391
+ 'unicorn/require-array-join-separator': [2],
2392
+ 'unicorn-js/require-array-sort-compare': [2],
2393
+ 'unicorn-js/require-css-escape': [2, { checkAllSelectors: false }],
2394
+ 'unicorn/require-module-attributes': [2],
2395
+ 'unicorn/require-module-specifiers': [2],
2396
+ 'unicorn/require-number-to-fixed-digits-argument': [2],
2397
+ 'unicorn-js/require-passive-events': [2],
2398
+ 'unicorn-js/require-proxy-trap-boolean-return': [2],
2399
+ 'unicorn-js/single-line-block-comment-style': [2, 'multiline', { ignore: [] }],
2400
+ 'unicorn/switch-case-braces': [2, 'always'],
2401
+ 'unicorn/switch-case-break-position': [2],
2402
+ 'unicorn-js/template-indent': [
2403
+ 2,
2404
+ {
2405
+ tags: ['outdent', 'dedent', 'gql', 'sql', 'html', 'styled'],
2406
+ functions: ['dedent', 'stripIndent'],
2407
+ selectors: [],
2408
+ comments: ['HTML', 'indent'],
2409
+ },
2410
+ ],
2411
+ 'unicorn/text-encoding-identifier-case': [2, { withDash: false }],
2412
+ 'unicorn/throw-new-error': [2],
2413
+ 'eslint/use-isnan': [2, { enforceForIndexOf: false, enforceForSwitchCase: true }],
2414
+ 'eslint/valid-typeof': [2, { requireStringLiterals: false }],
2415
+ 'eslint/no-var': 'off',
2416
+ 'eslint/prefer-rest-params': 'off',
2417
+ 'eslint/prefer-spread': 'off',
2418
+ },
2419
+ globals: {
2420
+ AggregateError: 'readonly',
2421
+ Array: 'readonly',
2422
+ ArrayBuffer: 'readonly',
2423
+ AsyncDisposableStack: 'readonly',
2424
+ Atomics: 'readonly',
2425
+ BigInt: 'readonly',
2426
+ BigInt64Array: 'readonly',
2427
+ BigUint64Array: 'readonly',
2428
+ Boolean: 'readonly',
2429
+ DataView: 'readonly',
2430
+ Date: 'readonly',
2431
+ decodeURI: 'readonly',
2432
+ decodeURIComponent: 'readonly',
2433
+ DisposableStack: 'readonly',
2434
+ encodeURI: 'readonly',
2435
+ encodeURIComponent: 'readonly',
2436
+ Error: 'readonly',
2437
+ escape: 'readonly',
2438
+ eval: 'readonly',
2439
+ EvalError: 'readonly',
2440
+ FinalizationRegistry: 'readonly',
2441
+ Float16Array: 'readonly',
2442
+ Float32Array: 'readonly',
2443
+ Float64Array: 'readonly',
2444
+ Function: 'readonly',
2445
+ globalThis: 'readonly',
2446
+ Infinity: 'readonly',
2447
+ Int16Array: 'readonly',
2448
+ Int32Array: 'readonly',
2449
+ Int8Array: 'readonly',
2450
+ Intl: 'readonly',
2451
+ isFinite: 'readonly',
2452
+ isNaN: 'readonly',
2453
+ Iterator: 'readonly',
2454
+ JSON: 'readonly',
2455
+ Map: 'readonly',
2456
+ Math: 'readonly',
2457
+ NaN: 'readonly',
2458
+ Number: 'readonly',
2459
+ Object: 'readonly',
2460
+ parseFloat: 'readonly',
2461
+ parseInt: 'readonly',
2462
+ Promise: 'readonly',
2463
+ Proxy: 'readonly',
2464
+ RangeError: 'readonly',
2465
+ ReferenceError: 'readonly',
2466
+ Reflect: 'readonly',
2467
+ RegExp: 'readonly',
2468
+ Set: 'readonly',
2469
+ SharedArrayBuffer: 'readonly',
2470
+ String: 'readonly',
2471
+ SuppressedError: 'readonly',
2472
+ Symbol: 'readonly',
2473
+ SyntaxError: 'readonly',
2474
+ TypeError: 'readonly',
2475
+ Uint16Array: 'readonly',
2476
+ Uint32Array: 'readonly',
2477
+ Uint8Array: 'readonly',
2478
+ Uint8ClampedArray: 'readonly',
2479
+ undefined: 'readonly',
2480
+ unescape: 'readonly',
2481
+ URIError: 'readonly',
2482
+ WeakMap: 'readonly',
2483
+ WeakRef: 'readonly',
2484
+ WeakSet: 'readonly',
2485
+ },
2486
+ },
2487
+ '623b9ded3e11ecbe': {
2488
+ rules: {
2489
+ 'stylistic-js/lines-between-class-members': [
2490
+ 2,
2491
+ 'always',
2492
+ { exceptAfterOverload: true, exceptAfterSingleLine: true },
2493
+ ],
2494
+ 'stylistic-js/padding-line-between-statements': [
2495
+ 2,
2496
+ { blankLine: 'always', prev: '*', next: 'if' },
2497
+ { blankLine: 'always', prev: 'if', next: 'if' },
2498
+ { blankLine: 'always', prev: ['const', 'let'], next: '*' },
2499
+ { blankLine: 'any', prev: ['const', 'let'], next: ['const', 'let'] },
2500
+ { blankLine: 'always', prev: '*', next: 'return' },
2501
+ { blankLine: 'always', prev: '*', next: 'case' },
2502
+ { blankLine: 'always', prev: 'if', next: '*' },
2503
+ ],
2504
+ 'stylistic-js/spaced-comment': [2, 'always'],
2505
+ 'typescript/adjacent-overload-signatures': [2],
2506
+ 'typescript-js/array-type': [2],
2507
+ 'typescript/ban-ts-comment': [2],
2508
+ 'typescript/ban-tslint-comment': [2],
2509
+ 'typescript/class-literal-property-style': [2],
2510
+ 'typescript/consistent-generic-constructors': [2],
2511
+ 'typescript/consistent-indexed-object-style': [2],
2512
+ 'typescript/consistent-type-assertions': [2],
2513
+ 'typescript/consistent-type-definitions': 'off',
2514
+ 'typescript/consistent-type-imports': 'off',
2515
+ 'eslint/no-array-constructor': [2],
2516
+ 'typescript/no-confusing-non-null-assertion': [2],
2517
+ 'typescript/no-duplicate-enum-values': [2],
2518
+ 'eslint/no-empty-function': [2, { allow: [] }],
2519
+ 'typescript/no-empty-object-type': [2],
2520
+ 'typescript/no-explicit-any': [2],
2521
+ 'typescript/no-extra-non-null-assertion': [2],
2522
+ 'typescript/no-inferrable-types': [2],
2523
+ 'typescript/no-misused-new': [2],
2524
+ 'typescript/no-namespace': [2],
2525
+ 'typescript/no-non-null-asserted-optional-chain': [2],
2526
+ 'typescript/no-require-imports': [2],
2527
+ 'eslint/no-shadow': 'off',
2528
+ 'typescript/no-this-alias': [2],
2529
+ 'typescript/no-unnecessary-type-constraint': [2],
2530
+ 'typescript/no-unsafe-declaration-merging': [2],
2531
+ 'typescript/no-unsafe-function-type': [2],
2532
+ 'eslint/no-unused-expressions': [
2533
+ 2,
2534
+ { allowShortCircuit: false, allowTaggedTemplates: false, allowTernary: false },
2535
+ ],
2536
+ 'eslint/no-unused-vars': 'off',
2537
+ 'typescript/no-wrapper-object-types': [2],
2538
+ 'typescript-js/prefer-as-const': [2],
2539
+ 'typescript/prefer-for-of': [2],
2540
+ 'typescript/prefer-function-type': [2],
2541
+ 'typescript/prefer-namespace-keyword': [2],
2542
+ 'typescript/switch-exhaustiveness-check': 'off',
2543
+ 'typescript/triple-slash-reference': [2],
2544
+ 'eslint/arrow-body-style': [2, 'as-needed'],
2545
+ 'eslint-js/camelcase': [
2546
+ 2,
2547
+ { allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
2548
+ ],
2549
+ 'eslint/constructor-super': [2],
2550
+ 'eslint/for-direction': [2],
2551
+ 'eslint/getter-return': [2, { allowImplicit: false }],
2552
+ 'import/default': [2],
2553
+ 'import/export': [2],
2554
+ 'import/extensions': [2, 'never', { js: 'never', json: 'ignorePackages' }],
2555
+ 'import/namespace': [2],
2556
+ 'import/newline-after-import': [2],
2557
+ 'import/no-duplicates': [2, { considerQueryString: true }],
2558
+ 'import/no-named-as-default': [1],
2559
+ 'import/no-named-as-default-member': [1],
2560
+ 'import-x-js/no-unresolved': [2, { caseSensitive: true }],
2561
+ 'import-x-js/order': [
2562
+ 2,
2563
+ {
2564
+ 'newlines-between': 'always',
2565
+ groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
2566
+ pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
2567
+ alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
2568
+ distinctGroup: true,
2569
+ sortTypesGroup: false,
2570
+ named: false,
2571
+ warnOnUnassignedImports: false,
2572
+ },
2573
+ ],
2574
+ 'eslint-js/newline-before-return': [2],
2575
+ 'eslint/no-async-promise-executor': [2],
2576
+ 'eslint/no-case-declarations': [2],
2577
+ 'eslint/no-class-assign': [2],
2578
+ 'eslint/no-compare-neg-zero': [2],
2579
+ 'eslint/no-cond-assign': [2, 'except-parens'],
2580
+ 'eslint/no-console': [1, {}],
2581
+ 'eslint/no-const-assign': [2],
2582
+ 'eslint/no-constant-binary-expression': [2, { checkRelationalComparisons: false }],
2583
+ 'eslint/no-constant-condition': [2, { checkLoops: 'allExceptWhileTrue' }],
2584
+ 'eslint/no-control-regex': [2],
2585
+ 'eslint/no-debugger': [1],
2586
+ 'eslint/no-delete-var': [2],
2587
+ 'eslint-js/no-dupe-args': [2],
2588
+ 'eslint/no-dupe-class-members': [2],
2589
+ 'eslint/no-dupe-else-if': [2],
2590
+ 'eslint/no-dupe-keys': [2],
2591
+ 'eslint/no-duplicate-case': [2],
2592
+ 'eslint/no-empty': [2, { allowEmptyCatch: false }],
2593
+ 'eslint/no-empty-character-class': [2],
2594
+ 'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
2595
+ 'eslint/no-empty-static-block': [2],
2596
+ 'eslint/no-ex-assign': [2],
2597
+ 'eslint/no-extra-boolean-cast': [2, {}],
2598
+ 'eslint/no-fallthrough': [2, { allowEmptyCase: false, reportUnusedFallthroughComment: false }],
2599
+ 'eslint/no-func-assign': [2],
2600
+ 'eslint/no-global-assign': [2, { exceptions: [] }],
2601
+ 'eslint/no-import-assign': [2],
2602
+ 'eslint/no-invalid-regexp': [2, {}],
2603
+ 'eslint/no-irregular-whitespace': [
2604
+ 2,
2605
+ { skipComments: false, skipJSXText: false, skipRegExps: false, skipStrings: true, skipTemplates: false },
2606
+ ],
2607
+ 'eslint/no-loss-of-precision': [2],
2608
+ 'eslint/no-misleading-character-class': [2, { allowEscape: false }],
2609
+ 'eslint/no-new-native-nonconstructor': [2],
2610
+ 'eslint/no-nonoctal-decimal-escape': [2],
2611
+ 'eslint/no-obj-calls': [2],
2612
+ 'eslint-js/no-octal': [2],
2613
+ 'eslint/no-prototype-builtins': [2],
2614
+ 'eslint/no-redeclare': [2, { builtinGlobals: true }],
2615
+ 'eslint/no-regex-spaces': [2],
2616
+ 'eslint-js/no-restricted-syntax': [
2617
+ 2,
2618
+ { selector: 'WithStatement', message: '`with` statement are not allowed.' },
2619
+ { selector: 'ForInStatement', message: 'Use for..of instead.' },
2620
+ {
2621
+ selector: 'TSEnumDeclaration',
2622
+ message: "Don't declare enums, use type union of literal strings or constants.",
2623
+ },
2624
+ { selector: 'MemberExpression[object.name="React"]', message: 'Use named imports from react.' },
2625
+ {
2626
+ selector:
2627
+ 'CallExpression[callee.property.name="replaceAll"] > Literal[regex.flags=/^[^g]*$/].arguments:first-child',
2628
+ message: 'Missing "g" flag in regular expression.',
2629
+ },
2630
+ ],
2631
+ 'eslint/no-self-assign': 'off',
2632
+ 'eslint/no-setter-return': [2],
2633
+ 'eslint/no-shadow-restricted-names': [2, { reportGlobalThis: true }],
2634
+ 'eslint/no-sparse-arrays': [2],
2635
+ 'eslint/no-this-before-super': [2],
2636
+ 'eslint/no-unassigned-vars': [2],
2637
+ 'eslint/no-unreachable': [2],
2638
+ 'eslint/no-unsafe-finally': [2],
2639
+ 'eslint/no-unsafe-negation': [2, { enforceForOrderingRelations: false }],
2640
+ 'eslint/no-unsafe-optional-chaining': [2, { disallowArithmeticOperators: false }],
2641
+ 'eslint/no-unused-labels': [2],
2642
+ 'eslint/no-unused-private-class-members': [2],
2643
+ 'eslint/no-useless-assignment': [2],
2644
+ 'eslint/no-useless-backreference': [2],
2645
+ 'eslint/no-useless-catch': [2],
2646
+ 'eslint/no-useless-escape': [2, { allowRegexCharacters: [] }],
2647
+ 'eslint/no-with': [2],
2648
+ 'eslint/object-shorthand': [2, 'always'],
2649
+ 'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
2650
+ 'eslint/prefer-template': [2],
2651
+ 'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
2652
+ 'prettier/prettier': 'off',
2653
+ 'eslint/require-yield': [2],
2654
+ 'sonarjs/assertions-in-test-cases': [2],
2655
+ 'sonarjs/async-test-assertions': [2],
2656
+ 'sonarjs/aws-apigateway-public-api': [2],
2657
+ 'sonarjs/aws-ec2-rds-dms-public': [2],
2658
+ 'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
2659
+ 'sonarjs/aws-efs-unencrypted': [2],
2660
+ 'sonarjs/aws-iam-all-privileges': [2],
2661
+ 'sonarjs/aws-iam-privilege-escalation': [2],
2662
+ 'sonarjs/aws-iam-public-access': [2],
2663
+ 'sonarjs/aws-opensearchservice-domain': [2],
2664
+ 'sonarjs/aws-rds-unencrypted-databases': [2],
2665
+ 'sonarjs/aws-restricted-ip-admin-access': [2],
2666
+ 'sonarjs/aws-s3-bucket-granted-access': [2],
2667
+ 'sonarjs/aws-s3-bucket-insecure-http': [2],
2668
+ 'sonarjs/aws-s3-bucket-public-access': [2],
2669
+ 'sonarjs/aws-s3-bucket-versioning': [2],
2670
+ 'sonarjs/aws-sagemaker-unencrypted-notebook': [2],
2671
+ 'sonarjs/aws-sns-unencrypted-topics': [2],
2672
+ 'sonarjs/aws-sqs-unencrypted-queue': [2],
2673
+ 'sonarjs/block-scoped-var': [2],
2674
+ 'sonarjs/call-argument-line': [2],
2675
+ 'sonarjs/chai-determinate-assertion': [2],
2676
+ 'sonarjs/class-name': [2, { format: '^\\$?[A-Z][a-zA-Z0-9]*$' }],
2677
+ 'sonarjs/code-eval': [2],
2678
+ 'sonarjs/cognitive-complexity': [2, 15],
2679
+ 'sonarjs/comma-or-logical-or-case': [2],
2680
+ 'sonarjs/constructor-for-side-effects': [2],
2681
+ 'sonarjs/content-length': [2, { fileUploadSizeLimit: 8000000, standardSizeLimit: 2000000 }],
2682
+ 'sonarjs/content-security-policy': [2],
2683
+ 'sonarjs/cookie-no-httponly': [2],
2684
+ 'sonarjs/cors': [2],
2685
+ 'sonarjs/csrf': [2],
2686
+ 'typescript/no-deprecated': 'off',
2687
+ 'sonarjs/disabled-timeout': [2],
2688
+ 'sonarjs/dynamically-constructed-templates': [2],
2689
+ 'sonarjs/encryption-secure-mode': [2],
2690
+ 'sonarjs/explicit-test-skip': [2],
2691
+ 'sonarjs/file-permissions': [2],
2692
+ 'sonarjs/file-uploads': [2],
2693
+ 'sonarjs/fixme-tag': [2],
2694
+ 'sonarjs/for-loop-increment-sign': [2],
2695
+ 'sonarjs/function-inside-loop': [2],
2696
+ 'sonarjs/future-reserved-words': [2],
2697
+ 'sonarjs/generator-without-yield': [2],
2698
+ 'sonarjs/hardcoded-secret-signatures': [2],
2699
+ 'sonarjs/hashing': [2],
2700
+ 'sonarjs/hooks-before-test-cases': [2],
2701
+ 'sonarjs/inconsistent-function-call': [2],
2702
+ 'sonarjs/insecure-cookie': [2],
2703
+ 'sonarjs/insecure-jwt-token': [2],
2704
+ 'sonarjs/inverted-assertion-arguments': [2],
2705
+ 'sonarjs/label-position': [2],
2706
+ 'sonarjs/link-with-target-blank': [2],
2707
+ 'sonarjs/max-switch-cases': [2, 30],
2708
+ 'sonarjs/memoize-cache-key': [2],
2709
+ 'sonarjs/misplaced-loop-counter': [2],
2710
+ 'sonarjs/no-all-duplicated-branches': [2],
2711
+ 'typescript/require-array-sort-compare': 'off',
2712
+ 'sonarjs/no-angular-bypass-sanitization': [2],
2713
+ 'typescript/no-array-delete': 'off',
2714
+ 'sonarjs/no-case-label-in-switch': [2],
2715
+ 'sonarjs/no-clear-text-protocols': [2],
2716
+ 'sonarjs/no-code-after-done': [2],
2717
+ 'sonarjs/no-dead-store': [2],
2718
+ 'sonarjs/no-debug-commands-in-ui-tests': [2],
2719
+ 'sonarjs/no-default-utility-imports': [2],
2720
+ 'sonarjs/no-delete-var': [2],
2721
+ 'sonarjs/no-duplicate-in-composite': [2],
2722
+ 'sonarjs/no-duplicate-test-title': [2],
2723
+ 'sonarjs/no-duplicated-branches': [2],
2724
+ 'sonarjs/no-element-overwrite': [2],
2725
+ 'sonarjs/no-empty-collection': [2],
2726
+ 'sonarjs/no-empty-test-file': [2],
2727
+ 'sonarjs/no-empty-test-title': [2],
2728
+ 'sonarjs/no-equals-in-for-termination': [2],
2729
+ 'sonarjs/no-exclusive-tests': [2],
2730
+ 'sonarjs/no-extra-arguments': [2],
2731
+ 'sonarjs/no-fallthrough': [2],
2732
+ 'sonarjs/no-fixed-wait-in-tests': [2],
2733
+ 'sonarjs/no-floating-point-equality': [2],
2734
+ 'sonarjs/no-forced-browser-interaction': [2],
2735
+ 'sonarjs/no-global-this': [2],
2736
+ 'sonarjs/no-globals-shadowing': [2],
2737
+ 'sonarjs/no-gratuitous-expressions': [2],
2738
+ 'sonarjs/no-hardcoded-ip': [2],
2739
+ 'sonarjs/no-hardcoded-passwords': [2, { passwordWords: ['password', 'pwd', 'passwd', 'passphrase'] }],
2740
+ 'sonarjs/no-hardcoded-secrets': [
2741
+ 2,
2742
+ { secretWords: 'api[_.-]?key,auth,credential,secret,token', randomnessSensibility: 5 },
2743
+ ],
2744
+ 'sonarjs/no-hook-setter-in-body': [2],
2745
+ 'sonarjs/no-identical-conditions': [2],
2746
+ 'sonarjs/no-identical-expressions': [2],
2747
+ 'sonarjs/no-identical-functions': [2, 3],
2748
+ 'sonarjs/no-ignored-exceptions': [2],
2749
+ 'sonarjs/no-implicit-global': [2],
2750
+ 'sonarjs/no-incomplete-assertions': [2],
2751
+ 'sonarjs/no-internal-api-use': [2],
2752
+ 'sonarjs/no-interpolation-in-inline-snapshots': [2],
2753
+ 'sonarjs/no-invariant-returns': [2],
2754
+ 'sonarjs/no-inverted-boolean-check': [2],
2755
+ 'sonarjs/no-labels': [2],
2756
+ 'sonarjs/no-literal-call': [2],
2757
+ 'sonarjs/no-mime-sniff': [2],
2758
+ 'sonarjs/no-mixed-completion-style': [2],
2759
+ 'sonarjs/no-nested-assignment': [2],
2760
+ 'sonarjs/no-nested-conditional': [2],
2761
+ 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
2762
+ 'sonarjs/no-nested-template-literals': [2],
2763
+ 'sonarjs/no-os-command-from-path': [2],
2764
+ 'sonarjs/no-parameter-reassignment': [2],
2765
+ 'sonarjs/no-primitive-wrappers': [2],
2766
+ 'sonarjs/no-redundant-assignments': [2],
2767
+ 'sonarjs/no-redundant-boolean': [2],
2768
+ 'sonarjs/no-redundant-jump': [2],
2769
+ 'sonarjs/no-referrer-policy': [2],
2770
+ 'sonarjs/no-same-argument-assert': [2],
2771
+ 'sonarjs/no-same-line-conditional': [2],
2772
+ 'sonarjs/no-session-cookies-on-static-assets': [2],
2773
+ 'sonarjs/no-skipped-tests': [2],
2774
+ 'sonarjs/no-table-as-layout': [2],
2775
+ 'sonarjs/no-trivial-assertions': [2],
2776
+ 'sonarjs/no-unenclosed-multiline-block': [2],
2777
+ 'sonarjs/no-uniq-key': [2],
2778
+ 'sonarjs/no-unthrown-error': [2],
2779
+ 'sonarjs/no-unused-collection': [2],
2780
+ 'sonarjs/no-unused-vars': 'off',
2781
+ 'sonarjs/no-use-of-empty-return-value': [2],
2782
+ 'sonarjs/no-useless-catch': [2],
2783
+ 'sonarjs/no-useless-increment': [2],
2784
+ 'sonarjs/no-useless-react-setstate': [2],
2785
+ 'sonarjs/no-weak-cipher': [2],
2786
+ 'sonarjs/no-weak-keys': [2],
2787
+ 'sonarjs/non-existent-operator': [2],
2788
+ 'sonarjs/object-alt-content': [2],
2789
+ 'sonarjs/parameterized-tests': [2],
2790
+ 'sonarjs/prefer-default-last': [2],
2791
+ 'sonarjs/prefer-native-lodash-alternative': [2],
2792
+ 'sonarjs/prefer-promise-shorthand': [2],
2793
+ 'typescript/prefer-regexp-exec': 'off',
2794
+ 'sonarjs/prefer-single-boolean-return': [2],
2795
+ 'sonarjs/prefer-specific-assertions': [2],
2796
+ 'sonarjs/prefer-type-guard': [2],
2797
+ 'sonarjs/prefer-while': [2],
2798
+ 'sonarjs/production-debug': [2],
2799
+ 'sonarjs/pseudo-random': [2],
2800
+ 'sonarjs/public-static-readonly': [2],
2801
+ 'sonarjs/publicly-writable-directories': [2],
2802
+ 'sonarjs/redundant-type-aliases': [2],
2803
+ 'sonarjs/review-blockchain-mnemonic': [2],
2804
+ 'sonarjs/session-regeneration': [2],
2805
+ 'sonarjs/stable-tests': [2],
2806
+ 'sonarjs/stateful-regex': [2],
2807
+ 'sonarjs/strict-transport-security': [2],
2808
+ 'sonarjs/super-linear-regex': [2],
2809
+ 'sonarjs/synchronous-suite-callback': [2],
2810
+ 'sonarjs/table-header': [2],
2811
+ 'sonarjs/table-header-reference': [2],
2812
+ 'sonarjs/test-check-exception': [2],
2813
+ 'sonarjs/todo-tag': [1],
2814
+ 'sonarjs/unverified-certificate': [2],
2815
+ 'sonarjs/unverified-hostname': [2],
2816
+ 'sonarjs/updated-const-var': [2],
2817
+ 'sonarjs/updated-loop-counter': [2],
2818
+ 'sonarjs/use-type-alias': [2],
2819
+ 'sonarjs/weak-ssl': [2],
2820
+ 'sonarjs/x-powered-by': [2],
2821
+ 'sonarjs/xml-parser-xxe': [2],
2822
+ 'eslint/sort-imports': [
2823
+ 2,
2824
+ {
2825
+ allowSeparatedGroups: false,
2826
+ ignoreCase: false,
2827
+ ignoreDeclarationSort: true,
2828
+ ignoreMemberSort: false,
2829
+ memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
2830
+ },
2831
+ ],
2832
+ 'svelte/no-inner-declarations': [2, 'functions', { blockScopedFunctions: 'allow' }],
2833
+ 'svelte/no-inspect': [1],
2834
+ 'svelte/no-navigation-without-resolve': [2],
2835
+ 'svelte/no-store-async': [2],
2836
+ 'svelte/no-svelte-internal': [2],
2837
+ 'svelte/no-unnecessary-state-wrap': [2],
2838
+ 'svelte/prefer-svelte-reactivity': [2],
2839
+ 'svelte/prefer-writable-derived': [2],
2840
+ 'unicorn-js/better-dom-traversing': [2],
2841
+ 'unicorn/catch-error-name': [2, { name: 'error', ignore: [] }],
2842
+ 'unicorn-js/class-reference-in-static-methods': [2, { preferThis: true, preferSuper: true }],
2843
+ 'unicorn/consistent-assert': [2],
2844
+ 'unicorn-js/consistent-boolean-name': [
2845
+ 2,
2846
+ {
2847
+ checkVariables: 'always',
2848
+ checkArguments: 'always',
2849
+ checkFunctions: 'always',
2850
+ checkMethods: 'never',
2851
+ checkFields: 'never',
2852
+ ignore: [],
2853
+ wrappers: {},
2854
+ },
2855
+ ],
2856
+ 'unicorn-js/consistent-class-member-order': [
2857
+ 2,
2858
+ {
2859
+ order: [
2860
+ 'static-field',
2861
+ 'static-block',
2862
+ 'static-method',
2863
+ 'private-field',
2864
+ 'public-field',
2865
+ 'constructor',
2866
+ 'private-method',
2867
+ 'public-method',
2868
+ ],
2869
+ },
2870
+ ],
2871
+ 'unicorn-js/consistent-compound-words': [2, {}],
2872
+ 'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
2873
+ 'unicorn/consistent-date-clone': [2],
2874
+ 'unicorn-js/consistent-destructuring': [2],
2875
+ 'unicorn/consistent-empty-array-spread': [2],
2876
+ 'unicorn/consistent-existence-index-check': [2],
2877
+ 'unicorn-js/consistent-export-decorator-position': [2, 'above'],
2878
+ 'unicorn-js/consistent-function-scoping': [2, { checkArrowFunctions: true }],
2879
+ 'unicorn-js/consistent-json-file-read': [2, 'string'],
2880
+ 'unicorn-js/consistent-optional-chaining': [2],
2881
+ 'unicorn/consistent-template-literal-escape': [2],
2882
+ 'unicorn-js/consistent-tuple-labels': [2],
2883
+ 'unicorn/custom-error-definition': [2],
2884
+ 'unicorn-js/default-export-style': [2, { functions: 'inline', classes: 'inline' }],
2885
+ 'unicorn-js/dom-node-dataset': [2, { preferAttributes: false }],
2886
+ 'unicorn/empty-brace-spaces': [2],
2887
+ 'unicorn/error-message': [2],
2888
+ 'unicorn-js/escape-case': [2, 'uppercase'],
2889
+ 'unicorn-js/expiring-todo-comments': [
2890
+ 2,
2891
+ {
2892
+ terms: ['todo', 'fixme', 'xxx'],
2893
+ ignore: [],
2894
+ checkDates: false,
2895
+ checkDatesOnPullRequests: false,
2896
+ allowWarningComments: true,
2897
+ },
2898
+ ],
2899
+ 'unicorn/explicit-length-check': [2, { 'non-zero': 'greater-than' }],
2900
+ 'unicorn-js/explicit-timer-delay': [2, 'always'],
2901
+ 'unicorn/filename-case': [2],
2902
+ 'unicorn/import-style': [2, {}],
2903
+ 'unicorn-js/isolated-functions': [
2904
+ 2,
2905
+ { functions: ['makeSynchronous', 'workerize'], selectors: [], comments: ['@isolated'], overrideGlobals: {} },
2906
+ ],
2907
+ 'unicorn-js/logical-assignment-operators': [2, 'always'],
2908
+ 'unicorn/max-nested-calls': [2, { max: 3 }],
2909
+ 'unicorn-js/name-replacements': [
2910
+ 2,
2911
+ {
2912
+ replacements: {
2913
+ dev: false,
2914
+ prod: false,
2915
+ props: false,
2916
+ ref: false,
2917
+ refs: false,
2918
+ args: false,
2919
+ params: false,
2920
+ utils: false,
2921
+ env: false,
2922
+ },
2923
+ },
2924
+ ],
2925
+ 'unicorn/new-for-builtins': [2],
2926
+ 'unicorn/no-abusive-eslint-disable': [2],
2927
+ 'unicorn/no-accessor-recursion': [2],
2928
+ 'unicorn-js/no-accidental-bitwise-operator': [2],
2929
+ 'unicorn/no-anonymous-default-export': [2],
2930
+ 'unicorn-js/no-array-callback-reference': [2, { ignore: [] }],
2931
+ 'unicorn-js/no-array-concat-in-loop': [2],
2932
+ 'unicorn/no-array-fill-with-reference-type': [2],
2933
+ 'unicorn-js/no-array-from-fill': [2],
2934
+ 'unicorn/no-array-method-this-argument': [2],
2935
+ 'unicorn/no-array-reduce': [2, { allowSimpleOperations: true }],
2936
+ 'unicorn/no-array-reverse': [2, { allowExpressionStatement: true }],
2937
+ 'unicorn/no-array-sort': [2, { allowExpressionStatement: true }],
2938
+ 'unicorn-js/no-array-sort-for-min-max': [2],
2939
+ 'unicorn-js/no-array-splice': [2],
2940
+ 'unicorn-js/no-async-promise-finally': [2],
2941
+ 'unicorn/no-await-expression-member': [2],
2942
+ 'unicorn/no-await-in-promise-methods': [2],
2943
+ 'unicorn-js/no-boolean-sort-comparator': [2],
2944
+ 'unicorn-js/no-break-in-nested-loop': [2],
2945
+ 'unicorn-js/no-canvas-to-image': [2],
2946
+ 'unicorn-js/no-chained-comparison': [2],
2947
+ 'unicorn-js/no-collection-bracket-access': [2],
2948
+ 'unicorn-js/no-computed-property-existence-check': [2],
2949
+ 'unicorn-js/no-confusing-array-splice': [2],
2950
+ 'unicorn/no-confusing-array-with': [2],
2951
+ 'unicorn/no-console-spaces': [2],
2952
+ 'unicorn-js/no-constant-zero-expression': [2],
2953
+ 'unicorn-js/no-declarations-before-early-exit': [2],
2954
+ 'unicorn/no-document-cookie': [2],
2955
+ 'unicorn-js/no-double-comparison': [2],
2956
+ 'unicorn-js/no-duplicate-if-branches': [2],
2957
+ 'unicorn-js/no-duplicate-logical-operands': [2],
2958
+ 'unicorn-js/no-duplicate-loops': [2],
2959
+ 'unicorn-js/no-duplicate-set-values': [2],
2960
+ 'unicorn-js/no-empty-file': [2, { allowComments: false }],
2961
+ 'unicorn-js/no-error-property-assignment': [2],
2962
+ 'unicorn-js/no-exports-in-scripts': [2],
2963
+ 'unicorn-js/no-for-each': [2],
2964
+ 'unicorn-js/no-for-loop': [2],
2965
+ 'unicorn-js/no-global-object-property-assignment': [2],
2966
+ 'unicorn/no-immediate-mutation': [2],
2967
+ 'unicorn-js/no-impossible-length-comparison': [2],
2968
+ 'unicorn-js/no-incorrect-query-selector': [2],
2969
+ 'unicorn-js/no-incorrect-template-string-interpolation': [2],
2970
+ 'unicorn/no-instanceof-builtins': [2, { useErrorIsError: false, strategy: 'loose', include: [], exclude: [] }],
2971
+ 'unicorn-js/no-invalid-argument-count': [2, {}],
2972
+ 'unicorn-js/no-invalid-character-comparison': [2],
2973
+ 'unicorn/no-invalid-fetch-options': [2],
2974
+ 'unicorn/no-invalid-remove-event-listener': [2],
2975
+ 'unicorn-js/no-invalid-well-known-symbol-methods': [2],
2976
+ 'unicorn-js/no-late-current-target-access': [2],
2977
+ 'unicorn-js/no-late-event-control': [2],
2978
+ 'unicorn/no-lonely-if': [2],
2979
+ 'unicorn-js/no-loop-iterable-mutation': [2],
2980
+ 'unicorn/no-magic-array-flat-depth': [2],
2981
+ 'unicorn-js/no-mismatched-map-key': [2],
2982
+ 'unicorn-js/no-misrefactored-assignment': [2],
2983
+ 'unicorn-js/no-multiple-promise-resolver-calls': [2],
2984
+ 'unicorn-js/no-named-default': [2],
2985
+ 'unicorn-js/no-negated-array-predicate': [2],
2986
+ 'unicorn-js/no-negated-comparison': [2, { checkLogicalExpressions: false }],
2987
+ 'unicorn/no-negated-condition': [2],
2988
+ 'unicorn/no-negation-in-equality-check': [2],
2989
+ 'unicorn/no-nested-ternary': [2],
2990
+ 'unicorn/no-new-array': [2],
2991
+ 'unicorn/no-new-buffer': [2],
2992
+ 'unicorn-js/no-nonstandard-builtin-properties': [2],
2993
+ 'unicorn/no-object-as-default-parameter': [2],
2994
+ 'unicorn-js/no-object-methods-with-collections': [2],
2995
+ 'unicorn-js/no-optional-chaining-on-undeclared-variable': [2],
2996
+ 'unicorn/no-process-exit': [2],
2997
+ 'unicorn-js/no-redundant-comparison': [2],
2998
+ 'unicorn-js/no-return-array-push': [2],
2999
+ 'unicorn-js/no-selector-as-dom-name': [2],
3000
+ 'unicorn/no-single-promise-in-promise-methods': [2],
3001
+ 'unicorn/no-static-only-class': [2],
3002
+ 'unicorn-js/no-subtraction-comparison': [2],
3003
+ 'unicorn/no-thenable': [2],
3004
+ 'unicorn/no-this-assignment': [2],
3005
+ 'unicorn-js/no-this-outside-of-class': [2],
3006
+ 'unicorn-js/no-top-level-assignment-in-function': [2],
3007
+ 'unicorn-js/no-top-level-side-effects': [2],
3008
+ 'unicorn/no-typeof-undefined': [2, { checkGlobalVariables: false }],
3009
+ 'unicorn-js/no-uncalled-method': [2],
3010
+ 'unicorn-js/no-undeclared-class-members': [2],
3011
+ 'unicorn/no-unnecessary-array-flat-depth': [2],
3012
+ 'unicorn-js/no-unnecessary-array-flat-map': [2],
3013
+ 'unicorn/no-unnecessary-array-splice-count': [2],
3014
+ 'unicorn-js/no-unnecessary-await': [2],
3015
+ 'unicorn-js/no-unnecessary-boolean-comparison': [2],
3016
+ 'unicorn-js/no-unnecessary-fetch-options': [2],
3017
+ 'unicorn-js/no-unnecessary-global-this': [2],
3018
+ 'unicorn-js/no-unnecessary-nested-ternary': [2],
3019
+ 'unicorn-js/no-unnecessary-polyfills': [2, {}],
3020
+ 'unicorn/no-unnecessary-slice-end': [2],
3021
+ 'unicorn-js/no-unnecessary-splice': [2],
3022
+ 'unicorn-js/no-unnecessary-string-trim': [2],
3023
+ 'unicorn-js/no-unreadable-array-destructuring': [2, { maximumIgnoredElements: 1 }],
3024
+ 'unicorn-js/no-unreadable-for-of-expression': [2],
3025
+ 'unicorn/no-unreadable-iife': [2],
3026
+ 'unicorn-js/no-unreadable-object-destructuring': [2],
3027
+ 'unicorn-js/no-unsafe-buffer-conversion': [2],
3028
+ 'unicorn-js/no-unsafe-promise-all-settled-values': [2],
3029
+ 'unicorn-js/no-unsafe-property-key': [2],
3030
+ 'unicorn-js/no-unsafe-sqlite-interpolation': [2],
3031
+ 'unicorn-js/no-unsafe-string-replacement': [2],
3032
+ 'unicorn-js/no-unused-array-method-return': [2],
3033
+ 'unicorn-js/no-unused-properties': [2],
3034
+ 'unicorn-js/no-useless-boolean-cast': [2],
3035
+ 'unicorn-js/no-useless-coercion': [2],
3036
+ 'unicorn/no-useless-collection-argument': [2],
3037
+ 'unicorn-js/no-useless-compound-assignment': [2],
3038
+ 'unicorn-js/no-useless-concat': [2],
3039
+ 'unicorn-js/no-useless-continue': [2],
3040
+ 'unicorn-js/no-useless-delete-check': [2],
3041
+ 'unicorn-js/no-useless-else': [2],
3042
+ 'unicorn/no-useless-error-capture-stack-trace': [2],
3043
+ 'unicorn/no-useless-fallback-in-spread': [2],
3044
+ 'unicorn/no-useless-iterator-to-array': [2],
3045
+ 'unicorn/no-useless-length-check': [2],
3046
+ 'unicorn-js/no-useless-logical-operand': [2],
3047
+ 'unicorn-js/no-useless-override': [2],
3048
+ 'unicorn/no-useless-promise-resolve-reject': [2],
3049
+ 'unicorn-js/no-useless-re-export': [2],
3050
+ 'unicorn-js/no-useless-recursion': [2],
3051
+ 'unicorn/no-useless-spread': [2],
3052
+ 'unicorn/no-useless-switch-case': [2],
3053
+ 'unicorn-js/no-useless-template-literals': [2],
3054
+ 'unicorn/no-useless-undefined': [2, { checkArguments: true, checkArrowFunctionBody: true }],
3055
+ 'unicorn-js/no-xor-as-exponentiation': [2],
3056
+ 'unicorn/no-zero-fractions': [2],
3057
+ 'unicorn-js/number-literal-case': [2, { hexadecimalValue: 'uppercase' }],
3058
+ 'unicorn-js/numeric-separators-style': [
3059
+ 2,
3060
+ {
3061
+ onlyIfContainsSeparator: false,
3062
+ binary: { minimumDigits: 0, groupLength: 4 },
3063
+ octal: { minimumDigits: 0, groupLength: 4 },
3064
+ hexadecimal: { minimumDigits: 0, groupLength: 2 },
3065
+ number: { minimumDigits: 5, groupLength: 3 },
3066
+ },
3067
+ ],
3068
+ 'unicorn-js/operator-assignment': [2, 'always'],
3069
+ 'unicorn-js/prefer-abort-signal-any': [2],
3070
+ 'unicorn-js/prefer-abort-signal-timeout': [2],
3071
+ 'unicorn-js/prefer-add-event-listener': [2, { excludedPackages: ['koa', 'sax'] }],
3072
+ 'unicorn-js/prefer-add-event-listener-options': [2],
3073
+ 'unicorn-js/prefer-aggregate-error': [2],
3074
+ 'unicorn-js/prefer-array-find': [2, { checkFromLast: true }],
3075
+ 'unicorn-js/prefer-array-flat': [2, { functions: [] }],
3076
+ 'unicorn/prefer-array-flat-map': [2],
3077
+ 'unicorn-js/prefer-array-from-async': [2],
3078
+ 'unicorn-js/prefer-array-from-map': [2],
3079
+ 'unicorn-js/prefer-array-from-range': [2],
3080
+ 'unicorn/prefer-array-index-of': [2],
3081
+ 'unicorn-js/prefer-array-iterable-methods': [2],
3082
+ 'unicorn-js/prefer-array-last-methods': [2],
3083
+ 'unicorn-js/prefer-array-slice': [2],
3084
+ 'unicorn/prefer-array-some': [2],
3085
+ 'unicorn/prefer-at': [2, { getLastElementFunctions: [], checkAllIndexAccess: false }],
3086
+ 'unicorn-js/prefer-await': [2],
3087
+ 'unicorn/prefer-bigint-literals': [2],
3088
+ 'unicorn/prefer-blob-reading-methods': [2],
3089
+ 'unicorn-js/prefer-block-statement-over-iife': [2],
3090
+ 'unicorn-js/prefer-boolean-return': [2],
3091
+ 'unicorn/prefer-class-fields': [2],
3092
+ 'unicorn/prefer-classlist-toggle': [2],
3093
+ 'unicorn/prefer-code-point': [2],
3094
+ 'unicorn-js/prefer-continue': [2, { maximumStatements: 1 }],
3095
+ 'unicorn/prefer-date-now': [2],
3096
+ 'unicorn/prefer-default-parameters': [2],
3097
+ 'unicorn-js/prefer-direct-iteration': [2],
3098
+ 'unicorn/prefer-dom-node-append': [2],
3099
+ 'unicorn-js/prefer-dom-node-html-methods': [2, { checkGetHTML: true, checkSetHTML: false }],
3100
+ 'unicorn/prefer-dom-node-remove': [2],
3101
+ 'unicorn-js/prefer-dom-node-replace-children': [2],
3102
+ 'unicorn/prefer-dom-node-text-content': [2],
3103
+ 'unicorn-js/prefer-early-return': [2, { maximumStatements: 1 }],
3104
+ 'unicorn-js/prefer-else-if': [2],
3105
+ 'unicorn/prefer-event-target': [2],
3106
+ 'unicorn/prefer-export-from': [2, { checkUsedVariables: true }],
3107
+ 'unicorn-js/prefer-flat-math-min-max': [2],
3108
+ 'unicorn-js/prefer-get-or-insert-computed': [2],
3109
+ 'unicorn-js/prefer-global-number-constants': [2],
3110
+ 'unicorn/prefer-global-this': [2],
3111
+ 'unicorn-js/prefer-group-by': [2],
3112
+ 'unicorn-js/prefer-has-check': [2],
3113
+ 'unicorn-js/prefer-hoisting-branch-code': [2],
3114
+ 'unicorn-js/prefer-https': [2, { ignore: [] }],
3115
+ 'unicorn-js/prefer-identifier-import-export-specifiers': [2],
3116
+ 'unicorn/prefer-includes': [2],
3117
+ 'unicorn-js/prefer-includes-over-repeated-comparisons': [2, { minimumComparisons: 3 }],
3118
+ 'unicorn-js/prefer-iterable-in-constructor': [2],
3119
+ 'unicorn-js/prefer-iterator-helpers': [2],
3120
+ 'unicorn-js/prefer-iterator-to-array': [2],
3121
+ 'unicorn-js/prefer-iterator-to-array-at-end': [2],
3122
+ 'unicorn/prefer-keyboard-event-key': [2],
3123
+ 'unicorn-js/prefer-location-assign': [2],
3124
+ 'unicorn/prefer-logical-operator-over-ternary': [2],
3125
+ 'unicorn-js/prefer-map-from-entries': [2],
3126
+ 'unicorn-js/prefer-math-abs': [2],
3127
+ 'unicorn-js/prefer-math-constants': [2],
3128
+ 'unicorn/prefer-math-min-max': [2],
3129
+ 'unicorn/prefer-math-trunc': [2],
3130
+ 'unicorn-js/prefer-minimal-ternary': [2, { checkVaryingBase: false, checkComputedMemberAccess: false }],
3131
+ 'unicorn/prefer-modern-dom-apis': [2],
3132
+ 'unicorn/prefer-modern-math-apis': [2],
3133
+ 'unicorn/prefer-module': [2],
3134
+ 'unicorn/prefer-native-coercion-functions': [2],
3135
+ 'unicorn/prefer-negative-index': [2],
3136
+ 'unicorn/prefer-node-protocol': [2],
3137
+ 'unicorn/prefer-number-coercion': [2],
3138
+ 'unicorn-js/prefer-number-is-safe-integer': [2],
3139
+ 'unicorn/prefer-number-properties': [2, { checkInfinity: false, checkNaN: false }],
3140
+ 'unicorn-js/prefer-object-define-properties': [2],
3141
+ 'unicorn-js/prefer-object-destructuring-defaults': [2],
3142
+ 'unicorn/prefer-object-from-entries': [2, { functions: [] }],
3143
+ 'unicorn-js/prefer-object-iterable-methods': [2],
3144
+ 'unicorn-js/prefer-observer-apis': [2],
3145
+ 'unicorn/prefer-optional-catch-binding': [2],
3146
+ 'unicorn-js/prefer-path2d': [2],
3147
+ 'unicorn-js/prefer-promise-try': [2],
3148
+ 'unicorn-js/prefer-promise-with-resolvers': [2],
3149
+ 'unicorn-js/prefer-prototype-methods': [2],
3150
+ 'unicorn-js/prefer-query-selector': [2, { allowWithVariables: false }],
3151
+ 'unicorn-js/prefer-queue-microtask': [2, { checkSetImmediate: false, checkSetTimeout: false }],
3152
+ 'unicorn/prefer-reflect-apply': [2],
3153
+ 'unicorn-js/prefer-regexp-test': [2],
3154
+ 'unicorn/prefer-response-static-json': [2],
3155
+ 'unicorn-js/prefer-scoped-selector': [2],
3156
+ 'unicorn-js/prefer-set-has': [2, { minimumItems: 0 }],
3157
+ 'unicorn-js/prefer-set-methods': [2],
3158
+ 'unicorn/prefer-set-size': [2],
3159
+ 'unicorn-js/prefer-simple-condition-first': [2],
3160
+ 'unicorn-js/prefer-simple-sort-comparator': [2],
3161
+ 'unicorn-js/prefer-simplified-conditions': [2],
3162
+ 'unicorn-js/prefer-single-array-predicate': [2],
3163
+ 'unicorn/prefer-single-call': [2, { ignore: [] }],
3164
+ 'unicorn-js/prefer-single-object-destructuring': [2],
3165
+ 'unicorn-js/prefer-single-replace': [2],
3166
+ 'unicorn-js/prefer-smaller-scope': [2],
3167
+ 'unicorn-js/prefer-split-limit': [2],
3168
+ 'unicorn/prefer-spread': [2],
3169
+ 'unicorn-js/prefer-string-match-all': [2],
3170
+ 'unicorn-js/prefer-string-pad-start-end': [2],
3171
+ 'unicorn-js/prefer-string-raw': [2],
3172
+ 'unicorn-js/prefer-string-repeat': [2, { minimumRepetitions: 3 }],
3173
+ 'unicorn/prefer-string-replace-all': [2],
3174
+ 'unicorn/prefer-string-slice': [2],
3175
+ 'unicorn-js/prefer-string-starts-ends-with': [2],
3176
+ 'unicorn/prefer-string-trim-start-end': [2],
3177
+ 'unicorn-js/prefer-structured-clone': [2, { functions: [] }],
3178
+ 'unicorn-js/prefer-switch': [2, { minimumCases: 3, emptyDefaultCase: 'no-default-comment' }],
3179
+ 'unicorn/prefer-ternary': [2, 'always'],
3180
+ 'unicorn-js/prefer-then-catch': [2],
3181
+ 'unicorn-js/prefer-toggle-attribute': [2],
3182
+ 'unicorn/prefer-top-level-await': [2],
3183
+ 'unicorn/prefer-type-error': [2],
3184
+ 'unicorn-js/prefer-type-literal-last': [2],
3185
+ 'unicorn-js/prefer-unary-minus': [2],
3186
+ 'unicorn-js/prefer-unicode-code-point-escapes': [2],
3187
+ 'unicorn-js/prefer-url-can-parse': [2],
3188
+ 'unicorn-js/prefer-url-href': [2],
3189
+ 'unicorn-js/prefer-url-search-parameters': [2],
3190
+ 'unicorn-js/prefer-while-loop-condition': [2],
3191
+ 'unicorn/relative-url-style': [2, 'never'],
3192
+ 'unicorn/require-array-join-separator': [2],
3193
+ 'unicorn-js/require-array-sort-compare': [2],
3194
+ 'unicorn-js/require-css-escape': [2, { checkAllSelectors: false }],
3195
+ 'unicorn/require-module-attributes': [2],
3196
+ 'unicorn/require-module-specifiers': [2],
3197
+ 'unicorn/require-number-to-fixed-digits-argument': [2],
3198
+ 'unicorn-js/require-passive-events': [2],
3199
+ 'unicorn-js/require-proxy-trap-boolean-return': [2],
3200
+ 'unicorn-js/single-line-block-comment-style': [2, 'multiline', { ignore: [] }],
3201
+ 'unicorn/switch-case-braces': [2, 'always'],
3202
+ 'unicorn/switch-case-break-position': [2],
3203
+ 'unicorn-js/template-indent': [
3204
+ 2,
3205
+ {
3206
+ tags: ['outdent', 'dedent', 'gql', 'sql', 'html', 'styled'],
3207
+ functions: ['dedent', 'stripIndent'],
3208
+ selectors: [],
3209
+ comments: ['HTML', 'indent'],
3210
+ },
3211
+ ],
3212
+ 'unicorn/text-encoding-identifier-case': [2, { withDash: false }],
3213
+ 'unicorn/throw-new-error': [2],
3214
+ 'eslint/use-isnan': [2, { enforceForIndexOf: false, enforceForSwitchCase: true }],
3215
+ 'eslint/valid-typeof': [2, { requireStringLiterals: false }],
3216
+ 'eslint/no-var': 'off',
3217
+ 'eslint/prefer-rest-params': 'off',
3218
+ 'eslint/prefer-spread': 'off',
3219
+ },
3220
+ globals: {
3221
+ AggregateError: 'readonly',
3222
+ Array: 'readonly',
3223
+ ArrayBuffer: 'readonly',
3224
+ AsyncDisposableStack: 'readonly',
3225
+ Atomics: 'readonly',
3226
+ BigInt: 'readonly',
3227
+ BigInt64Array: 'readonly',
3228
+ BigUint64Array: 'readonly',
3229
+ Boolean: 'readonly',
3230
+ DataView: 'readonly',
3231
+ Date: 'readonly',
3232
+ decodeURI: 'readonly',
3233
+ decodeURIComponent: 'readonly',
3234
+ DisposableStack: 'readonly',
3235
+ encodeURI: 'readonly',
3236
+ encodeURIComponent: 'readonly',
3237
+ Error: 'readonly',
3238
+ escape: 'readonly',
3239
+ eval: 'readonly',
3240
+ EvalError: 'readonly',
3241
+ FinalizationRegistry: 'readonly',
3242
+ Float16Array: 'readonly',
3243
+ Float32Array: 'readonly',
3244
+ Float64Array: 'readonly',
3245
+ Function: 'readonly',
3246
+ globalThis: 'readonly',
3247
+ Infinity: 'readonly',
3248
+ Int16Array: 'readonly',
3249
+ Int32Array: 'readonly',
3250
+ Int8Array: 'readonly',
3251
+ Intl: 'readonly',
3252
+ isFinite: 'readonly',
3253
+ isNaN: 'readonly',
3254
+ Iterator: 'readonly',
3255
+ JSON: 'readonly',
3256
+ Map: 'readonly',
3257
+ Math: 'readonly',
3258
+ NaN: 'readonly',
3259
+ Number: 'readonly',
3260
+ Object: 'readonly',
3261
+ parseFloat: 'readonly',
3262
+ parseInt: 'readonly',
3263
+ Promise: 'readonly',
3264
+ Proxy: 'readonly',
3265
+ RangeError: 'readonly',
3266
+ ReferenceError: 'readonly',
3267
+ Reflect: 'readonly',
3268
+ RegExp: 'readonly',
3269
+ Set: 'readonly',
3270
+ SharedArrayBuffer: 'readonly',
3271
+ String: 'readonly',
3272
+ SuppressedError: 'readonly',
3273
+ Symbol: 'readonly',
3274
+ SyntaxError: 'readonly',
3275
+ TypeError: 'readonly',
3276
+ Uint16Array: 'readonly',
3277
+ Uint32Array: 'readonly',
3278
+ Uint8Array: 'readonly',
3279
+ Uint8ClampedArray: 'readonly',
3280
+ undefined: 'readonly',
3281
+ unescape: 'readonly',
3282
+ URIError: 'readonly',
3283
+ WeakMap: 'readonly',
3284
+ WeakRef: 'readonly',
3285
+ WeakSet: 'readonly',
3286
+ },
3287
+ },
3288
+ },
3289
+ overrides: [
3290
+ { files: ['**/*.js'], profile: '19bd8fa797f7662f' },
3291
+ { files: ['**/*.ts'], profile: 'de6241fa04ffc18f' },
3292
+ { files: ['**/*.cjs'], profile: '19bd8fa797f7662f' },
3293
+ { files: ['**/*.cts'], profile: 'de6241fa04ffc18f' },
3294
+ { files: ['**/*.jsx', '**/*.mjs'], profile: '19bd8fa797f7662f' },
3295
+ { files: ['**/*.mts', '**/*.tsx'], profile: 'de6241fa04ffc18f' },
3296
+ { files: ['**/*.vue'], profile: 'e9517a4ebff6ecbc' },
3297
+ { files: ['**/*.d.ts'], profile: 'de6241fa04ffc18f' },
3298
+ { files: ['**/*.svelte'], profile: '623b9ded3e11ecbe' },
3299
+ { files: ['**/*.svelte.js'], profile: '19bd8fa797f7662f' },
3300
+ { files: ['**/*.svelte.ts'], profile: 'de6241fa04ffc18f' },
3301
+ ],
3302
+ }