@st1ggy/linter-config 7.3.1 → 8.0.0

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