@allthings/eslint-config 2.2.2 → 2.2.3
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/index.js +19 -2
- package/node.js +32 -2
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -117,7 +117,6 @@ module.exports = {
|
|
|
117
117
|
default: 'array',
|
|
118
118
|
},
|
|
119
119
|
],
|
|
120
|
-
'@typescript-eslint/no-base-to-string': 'warn',
|
|
121
120
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
122
121
|
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
123
122
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
@@ -141,9 +140,13 @@ module.exports = {
|
|
|
141
140
|
selector: 'interface',
|
|
142
141
|
},
|
|
143
142
|
],
|
|
144
|
-
'@typescript-eslint/no-
|
|
143
|
+
'@typescript-eslint/no-base-to-string': 'warn',
|
|
144
|
+
// need for tests' mockups
|
|
145
|
+
'@typescript-eslint/no-empty-function': 'warn',
|
|
145
146
|
'@typescript-eslint/no-empty-interface': 'error',
|
|
146
147
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
148
|
+
// turn on later
|
|
149
|
+
'@typescript-eslint/no-floating-promises': 'warn',
|
|
147
150
|
'@typescript-eslint/no-for-in-array': 'error',
|
|
148
151
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
149
152
|
'@typescript-eslint/no-misused-new': 'error',
|
|
@@ -304,6 +307,7 @@ module.exports = {
|
|
|
304
307
|
},
|
|
305
308
|
],
|
|
306
309
|
'unicorn/better-regex': 'off',
|
|
310
|
+
'unicorn/consistent-existence-index-check': 'off',
|
|
307
311
|
'unicorn/expiring-todo-comments': 'off',
|
|
308
312
|
'unicorn/filename-case': [
|
|
309
313
|
'warn',
|
|
@@ -317,12 +321,15 @@ module.exports = {
|
|
|
317
321
|
'unicorn/import-style': 'warn',
|
|
318
322
|
'unicorn/no-anonymous-default-export': 'off',
|
|
319
323
|
'unicorn/no-array-reduce': 'off',
|
|
324
|
+
'unicorn/no-await-expression-member': 'warn',
|
|
320
325
|
'unicorn/no-console-spaces': 'off',
|
|
321
326
|
'unicorn/no-document-cookie': 'warn',
|
|
322
327
|
'unicorn/no-empty-file': 'off',
|
|
323
328
|
'unicorn/no-hex-escape': 'warn',
|
|
324
329
|
'unicorn/no-invalid-remove-event-listener': 'warn',
|
|
325
330
|
'unicorn/no-nested-ternary': 'off',
|
|
331
|
+
// because we have a lot of logic depends on null
|
|
332
|
+
'unicorn/no-null': 'warn',
|
|
326
333
|
'unicorn/no-object-as-default-parameter': 'warn',
|
|
327
334
|
'unicorn/no-single-promise-in-promise-methods': 'warn',
|
|
328
335
|
'unicorn/no-unreadable-array-destructuring': 'off',
|
|
@@ -333,9 +340,13 @@ module.exports = {
|
|
|
333
340
|
'error',
|
|
334
341
|
{
|
|
335
342
|
allowList: {
|
|
343
|
+
params: true,
|
|
336
344
|
props: true,
|
|
337
345
|
},
|
|
338
346
|
replacements: {
|
|
347
|
+
params: {
|
|
348
|
+
properties: false,
|
|
349
|
+
},
|
|
339
350
|
props: {
|
|
340
351
|
properties: false,
|
|
341
352
|
},
|
|
@@ -413,8 +424,14 @@ module.exports = {
|
|
|
413
424
|
files: ['*.test.ts'],
|
|
414
425
|
rules: {
|
|
415
426
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
427
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
416
428
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
417
429
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
430
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
431
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
432
|
+
'@typescript-eslint/require-await': 'off',
|
|
433
|
+
'unicorn/no-array-callback-reference': 'off',
|
|
434
|
+
'unicorn/no-await-expression-member': 'off',
|
|
418
435
|
},
|
|
419
436
|
},
|
|
420
437
|
],
|
package/node.js
CHANGED
|
@@ -106,7 +106,6 @@ module.exports = {
|
|
|
106
106
|
default: 'array',
|
|
107
107
|
},
|
|
108
108
|
],
|
|
109
|
-
'@typescript-eslint/no-base-to-string': 'warn',
|
|
110
109
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
111
110
|
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
112
111
|
'@typescript-eslint/dot-notation': 'error',
|
|
@@ -131,9 +130,13 @@ module.exports = {
|
|
|
131
130
|
selector: 'interface',
|
|
132
131
|
},
|
|
133
132
|
],
|
|
134
|
-
'@typescript-eslint/no-
|
|
133
|
+
'@typescript-eslint/no-base-to-string': 'warn',
|
|
134
|
+
// need for tests' mockups
|
|
135
|
+
'@typescript-eslint/no-empty-function': 'warn',
|
|
135
136
|
'@typescript-eslint/no-empty-interface': 'error',
|
|
136
137
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
138
|
+
// turn on later
|
|
139
|
+
'@typescript-eslint/no-floating-promises': 'warn',
|
|
137
140
|
'@typescript-eslint/no-for-in-array': 'error',
|
|
138
141
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
139
142
|
'@typescript-eslint/no-misused-new': 'error',
|
|
@@ -272,6 +275,7 @@ module.exports = {
|
|
|
272
275
|
},
|
|
273
276
|
],
|
|
274
277
|
'unicorn/better-regex': 'off',
|
|
278
|
+
'unicorn/consistent-existence-index-check': 'off',
|
|
275
279
|
'unicorn/expiring-todo-comments': 'off',
|
|
276
280
|
'unicorn/filename-case': [
|
|
277
281
|
'warn',
|
|
@@ -285,18 +289,38 @@ module.exports = {
|
|
|
285
289
|
'unicorn/import-style': 'warn',
|
|
286
290
|
'unicorn/no-anonymous-default-export': 'off',
|
|
287
291
|
'unicorn/no-array-reduce': 'off',
|
|
292
|
+
'unicorn/no-await-expression-member': 'warn',
|
|
288
293
|
'unicorn/no-console-spaces': 'off',
|
|
289
294
|
'unicorn/no-document-cookie': 'warn',
|
|
290
295
|
'unicorn/no-empty-file': 'off',
|
|
291
296
|
'unicorn/no-hex-escape': 'warn',
|
|
292
297
|
'unicorn/no-invalid-remove-event-listener': 'warn',
|
|
293
298
|
'unicorn/no-nested-ternary': 'off',
|
|
299
|
+
// because we have a lot of logic depends on null
|
|
300
|
+
'unicorn/no-null': 'warn',
|
|
294
301
|
'unicorn/no-object-as-default-parameter': 'warn',
|
|
295
302
|
'unicorn/no-single-promise-in-promise-methods': 'warn',
|
|
296
303
|
'unicorn/no-unreadable-array-destructuring': 'off',
|
|
297
304
|
'unicorn/no-unsafe-regex': 'off',
|
|
298
305
|
'unicorn/no-unused-properties': 'warn',
|
|
299
306
|
'unicorn/no-zero-fractions': 'off',
|
|
307
|
+
'unicorn/prevent-abbreviations': [
|
|
308
|
+
'error',
|
|
309
|
+
{
|
|
310
|
+
allowList: {
|
|
311
|
+
params: true,
|
|
312
|
+
props: true,
|
|
313
|
+
},
|
|
314
|
+
replacements: {
|
|
315
|
+
params: {
|
|
316
|
+
properties: false,
|
|
317
|
+
},
|
|
318
|
+
props: {
|
|
319
|
+
properties: false,
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
],
|
|
300
324
|
'unicorn/prefer-export-from': 'off',
|
|
301
325
|
'unicorn/prefer-global-this': 'warn',
|
|
302
326
|
'unicorn/prefer-includes': 'off',
|
|
@@ -365,8 +389,14 @@ module.exports = {
|
|
|
365
389
|
files: ['*.test.ts'],
|
|
366
390
|
rules: {
|
|
367
391
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
392
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
368
393
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
369
394
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
395
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
396
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
397
|
+
'@typescript-eslint/require-await': 'off',
|
|
398
|
+
'unicorn/no-array-callback-reference': 'off',
|
|
399
|
+
'unicorn/no-await-expression-member': 'off',
|
|
370
400
|
},
|
|
371
401
|
},
|
|
372
402
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allthings/eslint-config",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "ESlint shareable config for Allthings style",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@rushstack/eslint-patch": "^1.11.0",
|
|
22
22
|
"@stylistic/eslint-plugin": "3.1.0",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
24
|
-
"@typescript-eslint/parser": "^8.
|
|
25
|
-
"eslint-config-prettier": "^10.1.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
24
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
25
|
+
"eslint-config-prettier": "^10.1.8",
|
|
26
26
|
"eslint-import-resolver-node": "^0.3.9",
|
|
27
|
-
"eslint-import-resolver-typescript": "^4.
|
|
28
|
-
"eslint-plugin-import": "^2.
|
|
29
|
-
"eslint-plugin-jest": "^
|
|
30
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
31
|
-
"eslint-plugin-n": "^17.
|
|
27
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
28
|
+
"eslint-plugin-import": "^2.32.0",
|
|
29
|
+
"eslint-plugin-jest": "^28.14.0",
|
|
30
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
31
|
+
"eslint-plugin-n": "^17.23.1",
|
|
32
32
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
33
|
-
"eslint-plugin-prettier": "^5.4
|
|
33
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
34
34
|
"eslint-plugin-react": "^7.37.5",
|
|
35
35
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
36
36
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
37
|
-
"eslint-plugin-typescript-sort-keys": "^3.
|
|
37
|
+
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
38
38
|
"eslint-plugin-unicorn": "^56.0.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|