@enigmatry/eslint-config 21.1.2-preview.1 → 21.2.1
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 +148 -151
- package/package.json +12 -10
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import angular from "angular-eslint";
|
|
|
4
4
|
import pluginPromise from "eslint-plugin-promise";
|
|
5
5
|
import stylistic from "@stylistic/eslint-plugin";
|
|
6
6
|
import noSecrets from "eslint-plugin-no-secrets";
|
|
7
|
-
import importPlugin from "eslint-plugin-import";
|
|
7
|
+
//import importPlugin from "eslint-plugin-import";
|
|
8
8
|
import nounsanitized from "eslint-plugin-no-unsanitized";
|
|
9
9
|
import unusedImports from "eslint-plugin-unused-imports";
|
|
10
10
|
import arrowFunctions from "eslint-plugin-prefer-arrow-functions";
|
|
@@ -31,7 +31,7 @@ export default defineConfig(
|
|
|
31
31
|
"no-unsanitized": nounsanitized,
|
|
32
32
|
"@stylistic": stylistic,
|
|
33
33
|
"@typescript-eslint": tseslint.plugin,
|
|
34
|
-
"import": importPlugin,
|
|
34
|
+
//"import": importPlugin,
|
|
35
35
|
"no-secrets": noSecrets,
|
|
36
36
|
"prefer-arrow-functions": arrowFunctions,
|
|
37
37
|
"promise": pluginPromise,
|
|
@@ -103,6 +103,7 @@ export default defineConfig(
|
|
|
103
103
|
"tab"
|
|
104
104
|
],
|
|
105
105
|
"@stylistic/indent-binary-ops": "off",
|
|
106
|
+
"@stylistic/jsx-props-style": "off",
|
|
106
107
|
"@stylistic/jsx-quotes": "error",
|
|
107
108
|
"@stylistic/key-spacing": "error",
|
|
108
109
|
"@stylistic/keyword-spacing": "off",
|
|
@@ -207,12 +208,8 @@ export default defineConfig(
|
|
|
207
208
|
"error",
|
|
208
209
|
{
|
|
209
210
|
"after": true,
|
|
210
|
-
"before":
|
|
211
|
+
"before": true,
|
|
211
212
|
"overrides": {
|
|
212
|
-
"arrow": {
|
|
213
|
-
"after": true,
|
|
214
|
-
"before": true
|
|
215
|
-
},
|
|
216
213
|
"colon": {
|
|
217
214
|
"after": true,
|
|
218
215
|
"before": false
|
|
@@ -391,150 +388,150 @@ export default defineConfig(
|
|
|
391
388
|
}
|
|
392
389
|
],
|
|
393
390
|
"id-match": "off",
|
|
394
|
-
"import/consistent-type-specifier-style": [
|
|
395
|
-
|
|
396
|
-
],
|
|
397
|
-
"import/default": [
|
|
398
|
-
|
|
399
|
-
],
|
|
400
|
-
"import/dynamic-import-chunkname": [
|
|
401
|
-
|
|
402
|
-
],
|
|
403
|
-
"import/enforce-node-protocol-usage": [
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
],
|
|
407
|
-
"import/export": [
|
|
408
|
-
|
|
409
|
-
],
|
|
410
|
-
"import/exports-last": [
|
|
411
|
-
|
|
412
|
-
],
|
|
413
|
-
"import/extensions": [
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
],
|
|
417
|
-
"import/first": [
|
|
418
|
-
|
|
419
|
-
],
|
|
420
|
-
"import/max-dependencies": [
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
],
|
|
427
|
-
"import/named": [
|
|
428
|
-
|
|
429
|
-
],
|
|
430
|
-
"import/namespace": [
|
|
431
|
-
|
|
432
|
-
],
|
|
433
|
-
"import/newline-after-import": [
|
|
434
|
-
|
|
435
|
-
],
|
|
436
|
-
"import/no-absolute-path": [
|
|
437
|
-
|
|
438
|
-
],
|
|
439
|
-
"import/no-amd": [
|
|
440
|
-
|
|
441
|
-
],
|
|
442
|
-
"import/no-anonymous-default-export": [
|
|
443
|
-
|
|
444
|
-
],
|
|
445
|
-
"import/no-commonjs": [
|
|
446
|
-
|
|
447
|
-
],
|
|
448
|
-
"import/no-cycle": [
|
|
449
|
-
|
|
450
|
-
],
|
|
451
|
-
"import/no-default-export": [
|
|
452
|
-
|
|
453
|
-
],
|
|
454
|
-
"import/no-deprecated": [
|
|
455
|
-
|
|
456
|
-
],
|
|
457
|
-
"import/no-duplicates": [
|
|
458
|
-
|
|
459
|
-
],
|
|
460
|
-
"import/no-dynamic-require": [
|
|
461
|
-
|
|
462
|
-
],
|
|
463
|
-
"import/no-empty-named-blocks": [
|
|
464
|
-
|
|
465
|
-
],
|
|
466
|
-
"import/no-extraneous-dependencies": [
|
|
467
|
-
|
|
468
|
-
],
|
|
469
|
-
"import/no-import-module-exports": [
|
|
470
|
-
|
|
471
|
-
],
|
|
472
|
-
"import/no-internal-modules": [
|
|
473
|
-
|
|
474
|
-
],
|
|
475
|
-
"import/no-mutable-exports": [
|
|
476
|
-
|
|
477
|
-
],
|
|
478
|
-
"import/no-named-as-default": [
|
|
479
|
-
|
|
480
|
-
],
|
|
481
|
-
"import/no-named-as-default-member": [
|
|
482
|
-
|
|
483
|
-
],
|
|
484
|
-
"import/no-named-default": [
|
|
485
|
-
|
|
486
|
-
],
|
|
487
|
-
"import/no-named-export": [
|
|
488
|
-
|
|
489
|
-
],
|
|
490
|
-
"import/no-namespace": [
|
|
491
|
-
|
|
492
|
-
],
|
|
493
|
-
"import/no-nodejs-modules": [
|
|
494
|
-
|
|
495
|
-
],
|
|
496
|
-
"import/no-relative-packages": [
|
|
497
|
-
|
|
498
|
-
],
|
|
499
|
-
"import/no-relative-parent-imports": [
|
|
500
|
-
|
|
501
|
-
],
|
|
502
|
-
"import/no-restricted-paths": [
|
|
503
|
-
|
|
504
|
-
],
|
|
505
|
-
"import/no-self-import": [
|
|
506
|
-
|
|
507
|
-
],
|
|
508
|
-
"import/no-unassigned-import": [
|
|
509
|
-
|
|
510
|
-
],
|
|
511
|
-
"import/no-unresolved": [
|
|
512
|
-
|
|
513
|
-
],
|
|
514
|
-
"import/no-unused-modules": [
|
|
515
|
-
|
|
516
|
-
],
|
|
517
|
-
"import/no-useless-path-segments": [
|
|
518
|
-
|
|
519
|
-
],
|
|
520
|
-
"import/no-webpack-loader-syntax": [
|
|
521
|
-
|
|
522
|
-
],
|
|
523
|
-
"import/order": [
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
],
|
|
532
|
-
"import/prefer-default-export": [
|
|
533
|
-
|
|
534
|
-
],
|
|
535
|
-
"import/unambiguous": [
|
|
536
|
-
|
|
537
|
-
],
|
|
391
|
+
// "import/consistent-type-specifier-style": [
|
|
392
|
+
// "off"
|
|
393
|
+
// ],
|
|
394
|
+
// "import/default": [
|
|
395
|
+
// "error"
|
|
396
|
+
// ],
|
|
397
|
+
// "import/dynamic-import-chunkname": [
|
|
398
|
+
// "off"
|
|
399
|
+
// ],
|
|
400
|
+
// "import/enforce-node-protocol-usage": [
|
|
401
|
+
// "warn",
|
|
402
|
+
// "never"
|
|
403
|
+
// ],
|
|
404
|
+
// "import/export": [
|
|
405
|
+
// "error"
|
|
406
|
+
// ],
|
|
407
|
+
// "import/exports-last": [
|
|
408
|
+
// "off"
|
|
409
|
+
// ],
|
|
410
|
+
// "import/extensions": [
|
|
411
|
+
// "off",
|
|
412
|
+
// "never"
|
|
413
|
+
// ],
|
|
414
|
+
// "import/first": [
|
|
415
|
+
// "error"
|
|
416
|
+
// ],
|
|
417
|
+
// "import/max-dependencies": [
|
|
418
|
+
// "error",
|
|
419
|
+
// {
|
|
420
|
+
// "ignoreTypeImports": false,
|
|
421
|
+
// "max": 20
|
|
422
|
+
// }
|
|
423
|
+
// ],
|
|
424
|
+
// "import/named": [
|
|
425
|
+
// "off"
|
|
426
|
+
// ],
|
|
427
|
+
// "import/namespace": [
|
|
428
|
+
// "error"
|
|
429
|
+
// ],
|
|
430
|
+
// "import/newline-after-import": [
|
|
431
|
+
// "error"
|
|
432
|
+
// ],
|
|
433
|
+
// "import/no-absolute-path": [
|
|
434
|
+
// "off"
|
|
435
|
+
// ],
|
|
436
|
+
// "import/no-amd": [
|
|
437
|
+
// "error"
|
|
438
|
+
// ],
|
|
439
|
+
// "import/no-anonymous-default-export": [
|
|
440
|
+
// "error"
|
|
441
|
+
// ],
|
|
442
|
+
// "import/no-commonjs": [
|
|
443
|
+
// "error"
|
|
444
|
+
// ],
|
|
445
|
+
// "import/no-cycle": [
|
|
446
|
+
// "error"
|
|
447
|
+
// ],
|
|
448
|
+
// "import/no-default-export": [
|
|
449
|
+
// "off"
|
|
450
|
+
// ],
|
|
451
|
+
// "import/no-deprecated": [
|
|
452
|
+
// "error"
|
|
453
|
+
// ],
|
|
454
|
+
// "import/no-duplicates": [
|
|
455
|
+
// "error"
|
|
456
|
+
// ],
|
|
457
|
+
// "import/no-dynamic-require": [
|
|
458
|
+
// "off"
|
|
459
|
+
// ],
|
|
460
|
+
// "import/no-empty-named-blocks": [
|
|
461
|
+
// "error"
|
|
462
|
+
// ],
|
|
463
|
+
// "import/no-extraneous-dependencies": [
|
|
464
|
+
// "error"
|
|
465
|
+
// ],
|
|
466
|
+
// "import/no-import-module-exports": [
|
|
467
|
+
// "error"
|
|
468
|
+
// ],
|
|
469
|
+
// "import/no-internal-modules": [
|
|
470
|
+
// "off"
|
|
471
|
+
// ],
|
|
472
|
+
// "import/no-mutable-exports": [
|
|
473
|
+
// "error"
|
|
474
|
+
// ],
|
|
475
|
+
// "import/no-named-as-default": [
|
|
476
|
+
// "error"
|
|
477
|
+
// ],
|
|
478
|
+
// "import/no-named-as-default-member": [
|
|
479
|
+
// "error"
|
|
480
|
+
// ],
|
|
481
|
+
// "import/no-named-default": [
|
|
482
|
+
// "error"
|
|
483
|
+
// ],
|
|
484
|
+
// "import/no-named-export": [
|
|
485
|
+
// "off"
|
|
486
|
+
// ],
|
|
487
|
+
// "import/no-namespace": [
|
|
488
|
+
// "off"
|
|
489
|
+
// ],
|
|
490
|
+
// "import/no-nodejs-modules": [
|
|
491
|
+
// "off"
|
|
492
|
+
// ],
|
|
493
|
+
// "import/no-relative-packages": [
|
|
494
|
+
// "off"
|
|
495
|
+
// ],
|
|
496
|
+
// "import/no-relative-parent-imports": [
|
|
497
|
+
// "off"
|
|
498
|
+
// ],
|
|
499
|
+
// "import/no-restricted-paths": [
|
|
500
|
+
// "off"
|
|
501
|
+
// ],
|
|
502
|
+
// "import/no-self-import": [
|
|
503
|
+
// "error"
|
|
504
|
+
// ],
|
|
505
|
+
// "import/no-unassigned-import": [
|
|
506
|
+
// "off"
|
|
507
|
+
// ],
|
|
508
|
+
// "import/no-unresolved": [
|
|
509
|
+
// "off"
|
|
510
|
+
// ],
|
|
511
|
+
// "import/no-unused-modules": [
|
|
512
|
+
// "off"
|
|
513
|
+
// ],
|
|
514
|
+
// "import/no-useless-path-segments": [
|
|
515
|
+
// "error"
|
|
516
|
+
// ],
|
|
517
|
+
// "import/no-webpack-loader-syntax": [
|
|
518
|
+
// "error"
|
|
519
|
+
// ],
|
|
520
|
+
// "import/order": [
|
|
521
|
+
// "error",
|
|
522
|
+
// {
|
|
523
|
+
// "alphabetize": {
|
|
524
|
+
// "caseInsensitive": true,
|
|
525
|
+
// "order": "asc"
|
|
526
|
+
// }
|
|
527
|
+
// }
|
|
528
|
+
// ],
|
|
529
|
+
// "import/prefer-default-export": [
|
|
530
|
+
// "off"
|
|
531
|
+
// ],
|
|
532
|
+
// "import/unambiguous": [
|
|
533
|
+
// "error"
|
|
534
|
+
// ],
|
|
538
535
|
"init-declarations": "off",
|
|
539
536
|
"max-classes-per-file": [
|
|
540
537
|
"error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmatry/eslint-config",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Enigmatry",
|
|
@@ -15,16 +15,18 @@
|
|
|
15
15
|
"index.js"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@stylistic/eslint-plugin": "5.
|
|
19
|
-
"eslint-plugin-
|
|
20
|
-
"eslint-plugin-no-
|
|
21
|
-
"eslint-plugin-no-unsanitized": "4.1.4",
|
|
18
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
19
|
+
"eslint-plugin-no-secrets": "2.3.3",
|
|
20
|
+
"eslint-plugin-no-unsanitized": "4.1.5",
|
|
22
21
|
"eslint-plugin-prefer-arrow-functions": "3.9.1",
|
|
23
|
-
"eslint-plugin-promise": "7.
|
|
24
|
-
"eslint-plugin-unused-imports": "4.
|
|
25
|
-
"angular-eslint": "21.
|
|
26
|
-
"typescript-eslint": "8.
|
|
27
|
-
"eslint": "
|
|
22
|
+
"eslint-plugin-promise": "7.3.0",
|
|
23
|
+
"eslint-plugin-unused-imports": "4.4.1",
|
|
24
|
+
"angular-eslint": "21.3.1",
|
|
25
|
+
"typescript-eslint": "8.59.1",
|
|
26
|
+
"eslint": "10.2.1"
|
|
27
|
+
},
|
|
28
|
+
"deprecatedDependencies": {
|
|
29
|
+
"eslint-plugin-import": "2.32.0 is out of support. Add it back to the list if support for ESLint v10+ is added"
|
|
28
30
|
},
|
|
29
31
|
"publishConfig": {
|
|
30
32
|
"access": "public"
|