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