@open-turo/eslint-config-typescript 12.0.1 → 13.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/docs/breaking-changes/v13.md +10 -0
- package/index.js +5 -5
- package/legacy.js +5 -5
- package/pack/open-turo-eslint-config-typescript-13.0.0.tgz +0 -0
- package/package.json +2 -2
- package/test/__snapshots__/test.spec.js.snap +55 -55
- package/pack/open-turo-eslint-config-typescript-12.0.1.tgz +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Breaking changes in v13
|
|
2
|
+
|
|
3
|
+
We are replacing `eslint-plugin-node` with `eslint-plugin-n`. See https://github.com/eslint-community/eslint-plugin-n
|
|
4
|
+
|
|
5
|
+
If you were reconfiguring some of the node rules in your eslint config you will have to update them:
|
|
6
|
+
|
|
7
|
+
```diff
|
|
8
|
+
- "node/no-missing-import": "off",
|
|
9
|
+
+ "n/no-missing-import": "off",
|
|
10
|
+
```
|
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
"import",
|
|
12
12
|
"jest",
|
|
13
13
|
"json",
|
|
14
|
-
"
|
|
14
|
+
"n",
|
|
15
15
|
"prettier",
|
|
16
16
|
"simple-import-sort",
|
|
17
17
|
"sonarjs",
|
|
@@ -27,7 +27,7 @@ module.exports = {
|
|
|
27
27
|
"plugin:import/typescript",
|
|
28
28
|
"plugin:jest/recommended",
|
|
29
29
|
"plugin:json/recommended-legacy",
|
|
30
|
-
"plugin:
|
|
30
|
+
"plugin:n/recommended",
|
|
31
31
|
"plugin:prettier/recommended",
|
|
32
32
|
"plugin:sonarjs/recommended-legacy",
|
|
33
33
|
"plugin:typescript-sort-keys/recommended",
|
|
@@ -61,14 +61,14 @@ module.exports = {
|
|
|
61
61
|
"import/prefer-default-export": "off",
|
|
62
62
|
"jest/no-jest-import": "off",
|
|
63
63
|
"json/*": "error",
|
|
64
|
-
"
|
|
64
|
+
"n/no-unpublished-import": [
|
|
65
65
|
"error",
|
|
66
66
|
{
|
|
67
67
|
allowModules: ["@jest/globals", "nock"],
|
|
68
68
|
},
|
|
69
69
|
],
|
|
70
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"n/no-unsupported-features/es-syntax": "off",
|
|
71
|
+
"n/no-missing-import": "off",
|
|
72
72
|
"simple-import-sort/imports": "error",
|
|
73
73
|
"simple-import-sort/exports": "error",
|
|
74
74
|
"sort-destructure-keys/sort-destructure-keys": "error",
|
package/legacy.js
CHANGED
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
"import",
|
|
13
13
|
"jest",
|
|
14
14
|
"json",
|
|
15
|
-
"
|
|
15
|
+
"n",
|
|
16
16
|
"prettier",
|
|
17
17
|
"simple-import-sort",
|
|
18
18
|
"sonarjs",
|
|
@@ -27,7 +27,7 @@ module.exports = {
|
|
|
27
27
|
"plugin:import/typescript",
|
|
28
28
|
"plugin:jest/recommended",
|
|
29
29
|
"plugin:json/recommended-legacy",
|
|
30
|
-
"plugin:
|
|
30
|
+
"plugin:n/recommended",
|
|
31
31
|
"plugin:prettier/recommended",
|
|
32
32
|
"plugin:sonarjs/recommended-legacy",
|
|
33
33
|
"plugin:typescript-sort-keys/recommended",
|
|
@@ -62,14 +62,14 @@ module.exports = {
|
|
|
62
62
|
"import/prefer-default-export": "off",
|
|
63
63
|
"jest/no-jest-import": "off",
|
|
64
64
|
"json/*": "error",
|
|
65
|
-
"
|
|
65
|
+
"n/no-unpublished-import": [
|
|
66
66
|
"error",
|
|
67
67
|
{
|
|
68
68
|
allowModules: ["@jest/globals", "nock"],
|
|
69
69
|
},
|
|
70
70
|
],
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"n/no-unsupported-features/es-syntax": "off",
|
|
72
|
+
"n/no-missing-import": "off",
|
|
73
73
|
"simple-import-sort/imports": "error",
|
|
74
74
|
"simple-import-sort/exports": "error",
|
|
75
75
|
"sort-destructure-keys/sort-destructure-keys": "error",
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"eslint-plugin-import": "2.31.0",
|
|
10
10
|
"eslint-plugin-jest": "28.9.0",
|
|
11
11
|
"eslint-plugin-json": "4.0.1",
|
|
12
|
-
"eslint-plugin-
|
|
12
|
+
"eslint-plugin-n": "14.0.0",
|
|
13
13
|
"eslint-plugin-prettier": "5.2.1",
|
|
14
14
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
15
15
|
"eslint-plugin-sonarjs": "3.0.1",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"repository": "https://github.com/open-turo/eslint-config-typescript",
|
|
45
|
-
"version": "
|
|
45
|
+
"version": "13.0.0"
|
|
46
46
|
}
|
|
@@ -76,7 +76,7 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
76
76
|
"sonarjs",
|
|
77
77
|
"simple-import-sort",
|
|
78
78
|
"prettier",
|
|
79
|
-
"
|
|
79
|
+
"n",
|
|
80
80
|
"json",
|
|
81
81
|
"import",
|
|
82
82
|
"@typescript-eslint",
|
|
@@ -541,6 +541,60 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
541
541
|
"multiline-ternary": [
|
|
542
542
|
"off",
|
|
543
543
|
],
|
|
544
|
+
"n/no-deprecated-api": [
|
|
545
|
+
"error",
|
|
546
|
+
],
|
|
547
|
+
"n/no-exports-assign": [
|
|
548
|
+
"error",
|
|
549
|
+
],
|
|
550
|
+
"n/no-extraneous-import": [
|
|
551
|
+
"error",
|
|
552
|
+
],
|
|
553
|
+
"n/no-extraneous-require": [
|
|
554
|
+
"error",
|
|
555
|
+
],
|
|
556
|
+
"n/no-missing-import": [
|
|
557
|
+
"off",
|
|
558
|
+
],
|
|
559
|
+
"n/no-missing-require": [
|
|
560
|
+
"error",
|
|
561
|
+
],
|
|
562
|
+
"n/no-process-exit": [
|
|
563
|
+
"error",
|
|
564
|
+
],
|
|
565
|
+
"n/no-unpublished-bin": [
|
|
566
|
+
"error",
|
|
567
|
+
],
|
|
568
|
+
"n/no-unpublished-import": [
|
|
569
|
+
"error",
|
|
570
|
+
{
|
|
571
|
+
"allowModules": [
|
|
572
|
+
"@jest/globals",
|
|
573
|
+
"nock",
|
|
574
|
+
],
|
|
575
|
+
},
|
|
576
|
+
],
|
|
577
|
+
"n/no-unpublished-require": [
|
|
578
|
+
"error",
|
|
579
|
+
],
|
|
580
|
+
"n/no-unsupported-features/es-builtins": [
|
|
581
|
+
"error",
|
|
582
|
+
],
|
|
583
|
+
"n/no-unsupported-features/es-syntax": [
|
|
584
|
+
"off",
|
|
585
|
+
{
|
|
586
|
+
"ignores": [],
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
"n/no-unsupported-features/node-builtins": [
|
|
590
|
+
"error",
|
|
591
|
+
],
|
|
592
|
+
"n/process-exit-as-throw": [
|
|
593
|
+
"error",
|
|
594
|
+
],
|
|
595
|
+
"n/shebang": [
|
|
596
|
+
"error",
|
|
597
|
+
],
|
|
544
598
|
"new-parens": [
|
|
545
599
|
"off",
|
|
546
600
|
],
|
|
@@ -691,9 +745,6 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
691
745
|
"no-octal": [
|
|
692
746
|
"error",
|
|
693
747
|
],
|
|
694
|
-
"no-process-exit": [
|
|
695
|
-
"error",
|
|
696
|
-
],
|
|
697
748
|
"no-prototype-builtins": [
|
|
698
749
|
"error",
|
|
699
750
|
],
|
|
@@ -784,57 +835,6 @@ exports[`validate config load config file in ESLint to validate all rules are co
|
|
|
784
835
|
"no-wrap-func": [
|
|
785
836
|
"off",
|
|
786
837
|
],
|
|
787
|
-
"node/no-deprecated-api": [
|
|
788
|
-
"error",
|
|
789
|
-
],
|
|
790
|
-
"node/no-exports-assign": [
|
|
791
|
-
"error",
|
|
792
|
-
],
|
|
793
|
-
"node/no-extraneous-import": [
|
|
794
|
-
"error",
|
|
795
|
-
],
|
|
796
|
-
"node/no-extraneous-require": [
|
|
797
|
-
"error",
|
|
798
|
-
],
|
|
799
|
-
"node/no-missing-import": [
|
|
800
|
-
"off",
|
|
801
|
-
],
|
|
802
|
-
"node/no-missing-require": [
|
|
803
|
-
"error",
|
|
804
|
-
],
|
|
805
|
-
"node/no-unpublished-bin": [
|
|
806
|
-
"error",
|
|
807
|
-
],
|
|
808
|
-
"node/no-unpublished-import": [
|
|
809
|
-
"error",
|
|
810
|
-
{
|
|
811
|
-
"allowModules": [
|
|
812
|
-
"@jest/globals",
|
|
813
|
-
"nock",
|
|
814
|
-
],
|
|
815
|
-
},
|
|
816
|
-
],
|
|
817
|
-
"node/no-unpublished-require": [
|
|
818
|
-
"error",
|
|
819
|
-
],
|
|
820
|
-
"node/no-unsupported-features/es-builtins": [
|
|
821
|
-
"error",
|
|
822
|
-
],
|
|
823
|
-
"node/no-unsupported-features/es-syntax": [
|
|
824
|
-
"off",
|
|
825
|
-
{
|
|
826
|
-
"ignores": [],
|
|
827
|
-
},
|
|
828
|
-
],
|
|
829
|
-
"node/no-unsupported-features/node-builtins": [
|
|
830
|
-
"error",
|
|
831
|
-
],
|
|
832
|
-
"node/process-exit-as-throw": [
|
|
833
|
-
"error",
|
|
834
|
-
],
|
|
835
|
-
"node/shebang": [
|
|
836
|
-
"error",
|
|
837
|
-
],
|
|
838
838
|
"nonblock-statement-body-position": [
|
|
839
839
|
"off",
|
|
840
840
|
],
|
|
Binary file
|