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