@enormora/eslint-config-typescript 0.0.43 → 0.0.44
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/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
11
|
-
"@typescript-eslint/parser": "8.
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "8.61.0",
|
|
11
|
+
"@typescript-eslint/parser": "8.61.0",
|
|
12
12
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
13
13
|
"eslint-plugin-functional": "10.0.0",
|
|
14
14
|
"eslint-plugin-import-x": "4.16.2",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"name": "@enormora/eslint-config-typescript",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@enormora/eslint-config-base": "0.0.
|
|
26
|
+
"@enormora/eslint-config-base": "0.0.38"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "git://github.com/enormora/eslint-config.git"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
33
|
-
"version": "0.0.
|
|
33
|
+
"version": "0.0.44"
|
|
34
34
|
}
|
|
@@ -4,22 +4,19 @@ import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescrip
|
|
|
4
4
|
import functionalPlugin from 'eslint-plugin-functional';
|
|
5
5
|
import { createNodeResolver } from 'eslint-plugin-import-x';
|
|
6
6
|
import perfectionistPlugin from 'eslint-plugin-perfectionist';
|
|
7
|
-
import { javascriptExtensions, typescriptExtensions } from
|
|
8
|
-
import { createRestrictedSyntaxPlugin } from
|
|
9
|
-
import { baseSharedConfig } from
|
|
10
|
-
|
|
7
|
+
import { javascriptExtensions, typescriptExtensions } from "@enormora/eslint-config-base/constants.js";
|
|
8
|
+
import { createRestrictedSyntaxPlugin } from "@enormora/eslint-config-base/rule-sets/restricted-syntax.js";
|
|
9
|
+
import { baseSharedConfig } from "@enormora/eslint-config-base/presets/base/base-shared.js";
|
|
11
10
|
export const noTsEnumDeclarationRestriction = {
|
|
12
11
|
selector: 'TSEnumDeclaration',
|
|
13
12
|
message: 'Use a string union type instead'
|
|
14
13
|
};
|
|
15
|
-
|
|
16
|
-
const namedReferenceTypePrefix = String.raw`(?:(?:keyof)?typeof)?`;
|
|
14
|
+
const namedReferenceTypePrefix = String.raw `(?:(?:keyof)?typeof)?`;
|
|
17
15
|
const mutableContainerLookahead = String
|
|
18
|
-
.raw`(?!(?:Array|ReadonlyArray|Map|ReadonlyMap|Set|ReadonlySet|Record|Readonly)\b)`;
|
|
19
|
-
const namedReferenceBody = String.raw`[A-Z][\w$]*(?:\.[A-Z][\w$]*)*(?:<.*>)?`;
|
|
16
|
+
.raw `(?!(?:Array|ReadonlyArray|Map|ReadonlyMap|Set|ReadonlySet|Record|Readonly)\b)`;
|
|
17
|
+
const namedReferenceBody = String.raw `[A-Z][\w$]*(?:\.[A-Z][\w$]*)*(?:<.*>)?`;
|
|
20
18
|
const namedReferenceAtom = `${namedReferenceTypePrefix}${mutableContainerLookahead}${namedReferenceBody}`;
|
|
21
|
-
const namedReferenceIgnorePattern = String.raw`^${namedReferenceAtom}(?:[|&]${namedReferenceAtom})*$`;
|
|
22
|
-
|
|
19
|
+
const namedReferenceIgnorePattern = String.raw `^${namedReferenceAtom}(?:[|&]${namedReferenceAtom})*$`;
|
|
23
20
|
const functionLikeNodes = [
|
|
24
21
|
'FunctionDeclaration',
|
|
25
22
|
'FunctionExpression',
|
|
@@ -30,19 +27,15 @@ const functionLikeNodes = [
|
|
|
30
27
|
'TSConstructorType'
|
|
31
28
|
]
|
|
32
29
|
.join(', ');
|
|
33
|
-
|
|
34
30
|
const noInlineSignatureTypeLiteralSelector = [
|
|
35
31
|
`:matches(${functionLikeNodes}) > .params TSTypeAnnotation > TSTypeLiteral`,
|
|
36
32
|
`:matches(${functionLikeNodes}) > TSTypeAnnotation.returnType > TSTypeLiteral`
|
|
37
33
|
]
|
|
38
34
|
.join(', ');
|
|
39
|
-
|
|
40
35
|
export const noInlineSignatureTypeLiteralRestriction = {
|
|
41
36
|
selector: noInlineSignatureTypeLiteralSelector,
|
|
42
|
-
message:
|
|
43
|
-
'Inline object type literals are not allowed in function parameters or return types — extract a named type.'
|
|
37
|
+
message: 'Inline object type literals are not allowed in function parameters or return types — extract a named type.'
|
|
44
38
|
};
|
|
45
|
-
|
|
46
39
|
const noPublicClassPropertySelector = [
|
|
47
40
|
'PropertyDefinition[accessibility="public"]',
|
|
48
41
|
'AccessorProperty[accessibility="public"]',
|
|
@@ -50,37 +43,30 @@ const noPublicClassPropertySelector = [
|
|
|
50
43
|
'MethodDefinition[kind="set"][accessibility="public"]'
|
|
51
44
|
]
|
|
52
45
|
.join(', ');
|
|
53
|
-
|
|
54
46
|
export const noPublicClassPropertyRestriction = {
|
|
55
47
|
selector: noPublicClassPropertySelector,
|
|
56
48
|
message: 'Class properties and accessors must be private or protected — only methods may be public.'
|
|
57
49
|
};
|
|
58
|
-
|
|
59
50
|
const restrictedSyntaxTypescriptPlugin = createRestrictedSyntaxPlugin([
|
|
60
51
|
'no-ts-enum-declaration',
|
|
61
52
|
'no-inline-signature-type-literal',
|
|
62
53
|
'no-public-class-property'
|
|
63
54
|
]);
|
|
64
|
-
|
|
65
55
|
function asArray(value) {
|
|
66
56
|
if (Array.isArray(value)) {
|
|
67
57
|
return value;
|
|
68
58
|
}
|
|
69
|
-
|
|
70
|
-
return [ value ];
|
|
59
|
+
return [value];
|
|
71
60
|
}
|
|
72
|
-
|
|
73
61
|
function configureWrappedCoreRule(name, optionsOverrides) {
|
|
74
62
|
const coreRuleConfig = asArray(baseSharedConfig.rules[name]);
|
|
75
|
-
const [
|
|
63
|
+
const [coreRuleSeverity, ...coreRuleOptions] = coreRuleConfig;
|
|
76
64
|
const options = optionsOverrides === undefined ? coreRuleOptions : asArray(optionsOverrides);
|
|
77
|
-
|
|
78
65
|
return {
|
|
79
66
|
[name]: 'off',
|
|
80
|
-
[`@typescript-eslint/${name}`]: [
|
|
67
|
+
[`@typescript-eslint/${name}`]: [coreRuleSeverity, ...options]
|
|
81
68
|
};
|
|
82
69
|
}
|
|
83
|
-
|
|
84
70
|
export const typescriptConfig = {
|
|
85
71
|
languageOptions: {
|
|
86
72
|
parser: typescriptParser,
|
|
@@ -100,7 +86,7 @@ export const typescriptConfig = {
|
|
|
100
86
|
},
|
|
101
87
|
'import-x/resolver-next': [
|
|
102
88
|
createNodeResolver({
|
|
103
|
-
extensions: [
|
|
89
|
+
extensions: [...javascriptExtensions, ...typescriptExtensions]
|
|
104
90
|
}),
|
|
105
91
|
createTypeScriptImportResolver()
|
|
106
92
|
],
|
|
@@ -131,13 +117,12 @@ export const typescriptConfig = {
|
|
|
131
117
|
'restricted-syntax-typescript': restrictedSyntaxTypescriptPlugin
|
|
132
118
|
},
|
|
133
119
|
rules: {
|
|
134
|
-
'restricted-syntax-typescript/no-ts-enum-declaration': [
|
|
120
|
+
'restricted-syntax-typescript/no-ts-enum-declaration': ['error', noTsEnumDeclarationRestriction],
|
|
135
121
|
'restricted-syntax-typescript/no-inline-signature-type-literal': [
|
|
136
122
|
'error',
|
|
137
123
|
noInlineSignatureTypeLiteralRestriction
|
|
138
124
|
],
|
|
139
|
-
'restricted-syntax-typescript/no-public-class-property': [
|
|
140
|
-
|
|
125
|
+
'restricted-syntax-typescript/no-public-class-property': ['error', noPublicClassPropertyRestriction],
|
|
141
126
|
'@typescript-eslint/no-require-imports': 'error',
|
|
142
127
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
143
128
|
'@typescript-eslint/array-type': [
|
|
@@ -147,7 +132,7 @@ export const typescriptConfig = {
|
|
|
147
132
|
}
|
|
148
133
|
],
|
|
149
134
|
'@typescript-eslint/await-thenable': 'error',
|
|
150
|
-
'@typescript-eslint/no-empty-object-type': [
|
|
135
|
+
'@typescript-eslint/no-empty-object-type': ['error', { allowInterfaces: 'never', allowObjectTypes: 'never' }],
|
|
151
136
|
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
152
137
|
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
153
138
|
'@typescript-eslint/no-restricted-types': [
|
|
@@ -155,13 +140,11 @@ export const typescriptConfig = {
|
|
|
155
140
|
{
|
|
156
141
|
types: {
|
|
157
142
|
'Record<never, never>': {
|
|
158
|
-
message:
|
|
159
|
-
'The `object` type is hard to use. Use `Record<PropertyKey, never>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
|
|
143
|
+
message: 'The `object` type is hard to use. Use `Record<PropertyKey, never>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
|
|
160
144
|
fixWith: 'Record<PropertyKey, never>'
|
|
161
145
|
},
|
|
162
146
|
object: {
|
|
163
|
-
message:
|
|
164
|
-
'The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
|
|
147
|
+
message: 'The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
|
|
165
148
|
fixWith: 'Record<string, unknown>'
|
|
166
149
|
},
|
|
167
150
|
Omit: {
|
|
@@ -175,17 +158,17 @@ export const typescriptConfig = {
|
|
|
175
158
|
'error',
|
|
176
159
|
{
|
|
177
160
|
selector: 'parameter',
|
|
178
|
-
format: [
|
|
161
|
+
format: ['camelCase'],
|
|
179
162
|
leadingUnderscore: 'allow',
|
|
180
163
|
trailingUnderscore: 'forbid'
|
|
181
164
|
},
|
|
182
165
|
{
|
|
183
166
|
selector: 'typeLike',
|
|
184
|
-
format: [
|
|
167
|
+
format: ['PascalCase']
|
|
185
168
|
},
|
|
186
169
|
{
|
|
187
170
|
selector: 'interface',
|
|
188
|
-
format: [
|
|
171
|
+
format: ['PascalCase'],
|
|
189
172
|
custom: {
|
|
190
173
|
regex: '^I[A-Z]',
|
|
191
174
|
match: false
|
|
@@ -210,10 +193,10 @@ export const typescriptConfig = {
|
|
|
210
193
|
// misfires on intentional tagged-union returns (e.g. `Value | Sentinel`)
|
|
211
194
|
// even when expressed as a single named alias.
|
|
212
195
|
'sonarjs/function-return-type': 'off',
|
|
213
|
-
...configureWrappedCoreRule('max-params'),
|
|
196
|
+
...configureWrappedCoreRule('max-params', undefined),
|
|
214
197
|
'@typescript-eslint/member-ordering': 'error',
|
|
215
|
-
...configureWrappedCoreRule('no-array-constructor'),
|
|
216
|
-
...configureWrappedCoreRule('no-empty-function'),
|
|
198
|
+
...configureWrappedCoreRule('no-array-constructor', undefined),
|
|
199
|
+
...configureWrappedCoreRule('no-empty-function', undefined),
|
|
217
200
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
218
201
|
'@typescript-eslint/no-extraneous-class': 'error',
|
|
219
202
|
'@typescript-eslint/no-for-in-array': 'error',
|
|
@@ -226,7 +209,6 @@ export const typescriptConfig = {
|
|
|
226
209
|
checksVoidReturn: true
|
|
227
210
|
}
|
|
228
211
|
],
|
|
229
|
-
|
|
230
212
|
'@typescript-eslint/no-this-alias': [
|
|
231
213
|
'error',
|
|
232
214
|
{
|
|
@@ -238,11 +220,11 @@ export const typescriptConfig = {
|
|
|
238
220
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
239
221
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
240
222
|
'@typescript-eslint/no-unused-private-class-members': 'error',
|
|
241
|
-
...configureWrappedCoreRule('no-unused-vars'),
|
|
242
|
-
...configureWrappedCoreRule('no-useless-constructor'),
|
|
223
|
+
...configureWrappedCoreRule('no-unused-vars', undefined),
|
|
224
|
+
...configureWrappedCoreRule('no-useless-constructor', undefined),
|
|
243
225
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
244
226
|
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
245
|
-
...configureWrappedCoreRule('prefer-destructuring'),
|
|
227
|
+
...configureWrappedCoreRule('prefer-destructuring', undefined),
|
|
246
228
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
247
229
|
'@typescript-eslint/prefer-function-type': 'error',
|
|
248
230
|
'@typescript-eslint/prefer-includes': 'error',
|
|
@@ -283,23 +265,23 @@ export const typescriptConfig = {
|
|
|
283
265
|
'@typescript-eslint/strict-void-return': 'error',
|
|
284
266
|
'@typescript-eslint/only-throw-error': 'error',
|
|
285
267
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
286
|
-
'@typescript-eslint/prefer-nullish-coalescing': [
|
|
287
|
-
'@typescript-eslint/class-literal-property-style': [
|
|
288
|
-
'@typescript-eslint/consistent-type-definitions': [
|
|
289
|
-
...configureWrappedCoreRule('default-param-last'),
|
|
290
|
-
...configureWrappedCoreRule('dot-notation'),
|
|
291
|
-
'@typescript-eslint/explicit-member-accessibility': [
|
|
268
|
+
'@typescript-eslint/prefer-nullish-coalescing': ['error', { ignoreIfStatements: true }],
|
|
269
|
+
'@typescript-eslint/class-literal-property-style': ['error', 'fields'],
|
|
270
|
+
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
|
|
271
|
+
...configureWrappedCoreRule('default-param-last', undefined),
|
|
272
|
+
...configureWrappedCoreRule('dot-notation', undefined),
|
|
273
|
+
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'explicit' }],
|
|
292
274
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
293
275
|
'@typescript-eslint/init-declarations': 'off',
|
|
294
|
-
'@typescript-eslint/method-signature-style': [
|
|
276
|
+
'@typescript-eslint/method-signature-style': ['error', 'property'],
|
|
295
277
|
'@typescript-eslint/no-base-to-string': 'error',
|
|
296
|
-
...configureWrappedCoreRule('no-dupe-class-members'),
|
|
297
|
-
'@typescript-eslint/no-dynamic-delete': [
|
|
298
|
-
'@typescript-eslint/no-extra-non-null-assertion': [
|
|
299
|
-
'@typescript-eslint/no-floating-promises': [
|
|
300
|
-
'@typescript-eslint/no-implied-eval': [
|
|
301
|
-
'@typescript-eslint/no-invalid-this': [
|
|
302
|
-
'@typescript-eslint/no-invalid-void-type': [
|
|
278
|
+
...configureWrappedCoreRule('no-dupe-class-members', undefined),
|
|
279
|
+
'@typescript-eslint/no-dynamic-delete': ['error'],
|
|
280
|
+
'@typescript-eslint/no-extra-non-null-assertion': ['error'],
|
|
281
|
+
'@typescript-eslint/no-floating-promises': ['error'],
|
|
282
|
+
'@typescript-eslint/no-implied-eval': ['error'],
|
|
283
|
+
'@typescript-eslint/no-invalid-this': ['error'],
|
|
284
|
+
'@typescript-eslint/no-invalid-void-type': ['error'],
|
|
303
285
|
...configureWrappedCoreRule('no-magic-numbers', {
|
|
304
286
|
ignoreEnums: false,
|
|
305
287
|
ignoreNumericLiteralTypes: true,
|
|
@@ -310,22 +292,22 @@ export const typescriptConfig = {
|
|
|
310
292
|
detectObjects: false,
|
|
311
293
|
enforceConst: false,
|
|
312
294
|
ignoreClassFieldInitialValues: false,
|
|
313
|
-
ignore: [
|
|
295
|
+
ignore: [-1, 0, 1]
|
|
314
296
|
}),
|
|
315
|
-
'@typescript-eslint/no-namespace': [
|
|
316
|
-
'@typescript-eslint/no-non-null-asserted-optional-chain': [
|
|
317
|
-
'@typescript-eslint/no-non-null-assertion': [
|
|
318
|
-
'@typescript-eslint/no-unnecessary-boolean-literal-compare': [
|
|
319
|
-
'@typescript-eslint/no-unnecessary-condition': [
|
|
320
|
-
'@typescript-eslint/no-unsafe-assignment': [
|
|
321
|
-
'@typescript-eslint/no-unsafe-call': [
|
|
322
|
-
'@typescript-eslint/no-unsafe-member-access': [
|
|
323
|
-
'@typescript-eslint/no-unsafe-return': [
|
|
324
|
-
...configureWrappedCoreRule('no-use-before-define'),
|
|
325
|
-
'@typescript-eslint/prefer-as-const': [
|
|
297
|
+
'@typescript-eslint/no-namespace': ['error'],
|
|
298
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': ['error'],
|
|
299
|
+
'@typescript-eslint/no-non-null-assertion': ['error'],
|
|
300
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': ['error'],
|
|
301
|
+
'@typescript-eslint/no-unnecessary-condition': ['error'],
|
|
302
|
+
'@typescript-eslint/no-unsafe-assignment': ['error'],
|
|
303
|
+
'@typescript-eslint/no-unsafe-call': ['error'],
|
|
304
|
+
'@typescript-eslint/no-unsafe-member-access': ['error'],
|
|
305
|
+
'@typescript-eslint/no-unsafe-return': ['error'],
|
|
306
|
+
...configureWrappedCoreRule('no-use-before-define', undefined),
|
|
307
|
+
'@typescript-eslint/prefer-as-const': ['error'],
|
|
326
308
|
// disabled because we use functional/prefer-immutable-types.md
|
|
327
|
-
'@typescript-eslint/prefer-readonly-parameter-types': [
|
|
328
|
-
'@typescript-eslint/prefer-reduce-type-parameter': [
|
|
309
|
+
'@typescript-eslint/prefer-readonly-parameter-types': ['off'],
|
|
310
|
+
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
|
|
329
311
|
'@typescript-eslint/ban-ts-comment': [
|
|
330
312
|
'error',
|
|
331
313
|
{
|
|
@@ -336,21 +318,21 @@ export const typescriptConfig = {
|
|
|
336
318
|
minimumDescriptionLength: 10
|
|
337
319
|
}
|
|
338
320
|
],
|
|
339
|
-
'@typescript-eslint/restrict-template-expressions': [
|
|
340
|
-
'@typescript-eslint/return-await': [
|
|
341
|
-
'@typescript-eslint/switch-exhaustiveness-check': [
|
|
342
|
-
'@typescript-eslint/unbound-method': [
|
|
343
|
-
'@typescript-eslint/ban-tslint-comment': [
|
|
344
|
-
'@typescript-eslint/no-confusing-non-null-assertion': [
|
|
345
|
-
'@typescript-eslint/prefer-enum-initializers': [
|
|
346
|
-
'@typescript-eslint/prefer-literal-enum-member': [
|
|
347
|
-
...configureWrappedCoreRule('no-redeclare'),
|
|
348
|
-
...configureWrappedCoreRule('no-shadow'),
|
|
321
|
+
'@typescript-eslint/restrict-template-expressions': ['off'],
|
|
322
|
+
'@typescript-eslint/return-await': ['off'],
|
|
323
|
+
'@typescript-eslint/switch-exhaustiveness-check': ['error'],
|
|
324
|
+
'@typescript-eslint/unbound-method': ['off'],
|
|
325
|
+
'@typescript-eslint/ban-tslint-comment': ['off'],
|
|
326
|
+
'@typescript-eslint/no-confusing-non-null-assertion': ['error'],
|
|
327
|
+
'@typescript-eslint/prefer-enum-initializers': ['off'],
|
|
328
|
+
'@typescript-eslint/prefer-literal-enum-member': ['off'],
|
|
329
|
+
...configureWrappedCoreRule('no-redeclare', undefined),
|
|
330
|
+
...configureWrappedCoreRule('no-shadow', undefined),
|
|
349
331
|
'@typescript-eslint/consistent-type-imports': [
|
|
350
332
|
'error',
|
|
351
333
|
{ prefer: 'type-imports', fixStyle: 'inline-type-imports', disallowTypeAnnotations: true }
|
|
352
334
|
],
|
|
353
|
-
'@typescript-eslint/consistent-indexed-object-style': [
|
|
335
|
+
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
|
|
354
336
|
'@typescript-eslint/no-loop-func': 'off',
|
|
355
337
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
356
338
|
'@typescript-eslint/no-confusing-void-expression': [
|
|
@@ -369,9 +351,9 @@ export const typescriptConfig = {
|
|
|
369
351
|
'@typescript-eslint/consistent-type-exports': 'error',
|
|
370
352
|
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
371
353
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
372
|
-
'@typescript-eslint/consistent-generic-constructors': [
|
|
354
|
+
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
|
|
373
355
|
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
374
|
-
'@typescript-eslint/parameter-properties': [
|
|
356
|
+
'@typescript-eslint/parameter-properties': ['error', { prefer: 'class-property' }],
|
|
375
357
|
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
376
358
|
'@typescript-eslint/no-mixed-enums': 'error',
|
|
377
359
|
'@typescript-eslint/no-import-type-side-effects': 'error',
|
|
@@ -381,7 +363,7 @@ export const typescriptConfig = {
|
|
|
381
363
|
'@typescript-eslint/no-array-delete': 'error',
|
|
382
364
|
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
|
383
365
|
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
|
384
|
-
...configureWrappedCoreRule('prefer-promise-reject-errors'),
|
|
366
|
+
...configureWrappedCoreRule('prefer-promise-reject-errors', undefined),
|
|
385
367
|
'@typescript-eslint/prefer-find': 'error',
|
|
386
368
|
'@typescript-eslint/no-deprecated': 'off',
|
|
387
369
|
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
|
|
@@ -389,7 +371,6 @@ export const typescriptConfig = {
|
|
|
389
371
|
'@typescript-eslint/no-unsafe-type-assertion': 'error',
|
|
390
372
|
'@typescript-eslint/related-getter-setter-pairs': 'error',
|
|
391
373
|
'@typescript-eslint/no-misused-spread': 'error',
|
|
392
|
-
|
|
393
374
|
'functional/functional-parameters': 'off',
|
|
394
375
|
'functional/immutable-data': 'off',
|
|
395
376
|
'functional/no-classes': 'off',
|
|
@@ -414,7 +395,7 @@ export const typescriptConfig = {
|
|
|
414
395
|
// named class/interface/type-alias references whose upstream
|
|
415
396
|
// members are not declared readonly, so structural shallow
|
|
416
397
|
// checks cannot be satisfied by any annotation.
|
|
417
|
-
ignoreTypePattern: [
|
|
398
|
+
ignoreTypePattern: [namedReferenceIgnorePattern],
|
|
418
399
|
fixer: {
|
|
419
400
|
ReadonlyShallow: [
|
|
420
401
|
{
|
|
@@ -461,7 +442,7 @@ export const typescriptConfig = {
|
|
|
461
442
|
}
|
|
462
443
|
],
|
|
463
444
|
'functional/prefer-tacit': 'error',
|
|
464
|
-
'functional/readonly-type': [
|
|
445
|
+
'functional/readonly-type': ['error', 'keyword'],
|
|
465
446
|
'functional/no-class-inheritance': 'off',
|
|
466
447
|
'functional/type-declaration-immutability': [
|
|
467
448
|
'error',
|
|
@@ -499,13 +480,12 @@ export const typescriptConfig = {
|
|
|
499
480
|
]
|
|
500
481
|
}
|
|
501
482
|
],
|
|
502
|
-
ignoreTypePattern: [
|
|
483
|
+
ignoreTypePattern: [namedReferenceIgnorePattern],
|
|
503
484
|
ignoreInterfaces: false
|
|
504
485
|
}
|
|
505
486
|
],
|
|
506
|
-
...configureWrappedCoreRule('consistent-return'),
|
|
487
|
+
...configureWrappedCoreRule('consistent-return', undefined),
|
|
507
488
|
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
|
508
|
-
|
|
509
489
|
'import/extensions': [
|
|
510
490
|
'error',
|
|
511
491
|
{
|
|
@@ -518,7 +498,6 @@ export const typescriptConfig = {
|
|
|
518
498
|
json: 'ignorePackages'
|
|
519
499
|
}
|
|
520
500
|
],
|
|
521
|
-
|
|
522
501
|
'perfectionist/sort-intersection-types': [
|
|
523
502
|
'error',
|
|
524
503
|
{
|
|
@@ -588,3 +567,4 @@ export const typescriptConfig = {
|
|
|
588
567
|
'perfectionist/sort-modules': 'off'
|
|
589
568
|
}
|
|
590
569
|
};
|
|
570
|
+
//# sourceMappingURL=typescript.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../../../configs/presets/typescript/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,mBAAmB,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,CAAC,MAAM,8BAA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,EAAE,KAAK;QACvC,0CAA0C,EAAE,KAAK;QACjD,yBAAyB,EAAE,KAAK;QAChC,qCAAqC,EAAE,KAAK;QAC5C,+BAA+B,EAAE,KAAK;QACtC,4BAA4B,EAAE,KAAK;KACtC;CACwB,CAAC"}
|
package/sbom.cdx.json
CHANGED
|
@@ -9,57 +9,57 @@
|
|
|
9
9
|
{
|
|
10
10
|
"type": "application",
|
|
11
11
|
"name": "packtory",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.33"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@enormora/eslint-config-typescript",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.
|
|
21
|
-
"purl": "pkg:npm/@enormora/eslint-config-typescript@0.0.
|
|
19
|
+
"version": "0.0.44",
|
|
20
|
+
"bom-ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.44",
|
|
21
|
+
"purl": "pkg:npm/@enormora/eslint-config-typescript@0.0.44"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
25
25
|
{
|
|
26
26
|
"type": "library",
|
|
27
27
|
"name": "@enormora/eslint-config-base",
|
|
28
|
-
"version": "0.0.
|
|
29
|
-
"bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.
|
|
28
|
+
"version": "0.0.38",
|
|
29
|
+
"bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.38",
|
|
30
30
|
"scope": "optional",
|
|
31
31
|
"licenses": [
|
|
32
32
|
{
|
|
33
33
|
"expression": "MIT"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"purl": "pkg:npm/@enormora/eslint-config-base@0.0.
|
|
36
|
+
"purl": "pkg:npm/@enormora/eslint-config-base@0.0.38"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"type": "library",
|
|
40
40
|
"name": "@typescript-eslint/eslint-plugin",
|
|
41
|
-
"version": "8.
|
|
42
|
-
"bom-ref": "pkg:npm/@typescript-eslint/eslint-plugin@8.
|
|
41
|
+
"version": "8.61.0",
|
|
42
|
+
"bom-ref": "pkg:npm/@typescript-eslint/eslint-plugin@8.61.0",
|
|
43
43
|
"scope": "required",
|
|
44
44
|
"licenses": [
|
|
45
45
|
{
|
|
46
46
|
"expression": "MIT"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"purl": "pkg:npm/@typescript-eslint/eslint-plugin@8.
|
|
49
|
+
"purl": "pkg:npm/@typescript-eslint/eslint-plugin@8.61.0"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"type": "library",
|
|
53
53
|
"name": "@typescript-eslint/parser",
|
|
54
|
-
"version": "8.
|
|
55
|
-
"bom-ref": "pkg:npm/@typescript-eslint/parser@8.
|
|
54
|
+
"version": "8.61.0",
|
|
55
|
+
"bom-ref": "pkg:npm/@typescript-eslint/parser@8.61.0",
|
|
56
56
|
"scope": "required",
|
|
57
57
|
"licenses": [
|
|
58
58
|
{
|
|
59
59
|
"expression": "MIT"
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
-
"purl": "pkg:npm/@typescript-eslint/parser@8.
|
|
62
|
+
"purl": "pkg:npm/@typescript-eslint/parser@8.61.0"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"type": "library",
|
|
@@ -116,14 +116,14 @@
|
|
|
116
116
|
],
|
|
117
117
|
"dependencies": [
|
|
118
118
|
{
|
|
119
|
-
"ref": "pkg:npm/@enormora/eslint-config-base@0.0.
|
|
119
|
+
"ref": "pkg:npm/@enormora/eslint-config-base@0.0.38"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.
|
|
122
|
+
"ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.44",
|
|
123
123
|
"dependsOn": [
|
|
124
|
-
"pkg:npm/@enormora/eslint-config-base@0.0.
|
|
125
|
-
"pkg:npm/@typescript-eslint/eslint-plugin@8.
|
|
126
|
-
"pkg:npm/@typescript-eslint/parser@8.
|
|
124
|
+
"pkg:npm/@enormora/eslint-config-base@0.0.38",
|
|
125
|
+
"pkg:npm/@typescript-eslint/eslint-plugin@8.61.0",
|
|
126
|
+
"pkg:npm/@typescript-eslint/parser@8.61.0",
|
|
127
127
|
"pkg:npm/eslint-import-resolver-typescript@4.4.5",
|
|
128
128
|
"pkg:npm/eslint-plugin-functional@10.0.0",
|
|
129
129
|
"pkg:npm/eslint-plugin-import-x@4.16.2",
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
"ref": "pkg:npm/@typescript-eslint/eslint-plugin@8.
|
|
134
|
+
"ref": "pkg:npm/@typescript-eslint/eslint-plugin@8.61.0"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
"ref": "pkg:npm/@typescript-eslint/parser@8.
|
|
137
|
+
"ref": "pkg:npm/@typescript-eslint/parser@8.61.0"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"ref": "pkg:npm/eslint-import-resolver-typescript@4.4.5"
|