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