@st1ggy/linter-config 7.3.0 → 7.4.0

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