@st1ggy/linter-config 7.3.0 → 7.4.0

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