Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 9605278

Browse files
committed
feat: eslint v8 compat
BREAKING CHANGE: requires eslint v8 - fix(deps): update dependency typescript to v4.4.4 - fix(deps): update dependency eslint-plugin-import to v2.25.2 - fix(deps): update typescript-eslint monorepo to v5 (major) - fix(deps): update dependency eslint-plugin-unicorn to v37 - fix(deps): update dependency eslint-plugin-jest to v25 - chore(deps): update dependency eslint to v8 - fix(deps): update dependency eslint-plugin-jest to v24.7.0 - fix(deps): update babel monorepo to v7.15.8 - drop deprecated rules: jest/prefer-to-be-null, jest/prefer-to-be-undefined, @typescript-eslint/no-unused-vars-experimental - drop eslint-plugin-inclusive-language (not updated to v8, also has exclusively reported false positives so far...) - add unicorn/template-indent
1 parent ebf4fe2 commit 9605278

18 files changed

+690
-898
lines changed

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,15 @@
6565
]
6666
},
6767
"dependencies": {
68-
"@babel/core": "7.15.5",
69-
"@babel/eslint-parser": "7.15.7",
68+
"@babel/core": "7.15.8",
69+
"@babel/eslint-parser": "7.15.8",
7070
"@next/eslint-plugin-next": "11.1.2",
71-
"@typescript-eslint/eslint-plugin": "4.33.0",
72-
"@typescript-eslint/parser": "4.33.0",
71+
"@typescript-eslint/eslint-plugin": "5.0.0",
72+
"@typescript-eslint/parser": "5.0.0",
7373
"confusing-browser-globals": "1.0.10",
7474
"eslint-config-prettier": "8.3.0",
75-
"eslint-plugin-import": "2.24.2",
76-
"eslint-plugin-inclusive-language": "2.1.1",
77-
"eslint-plugin-jest": "24.5.2",
75+
"eslint-plugin-import": "2.25.2",
76+
"eslint-plugin-jest": "25.0.5",
7877
"eslint-plugin-jest-dom": "3.9.2",
7978
"eslint-plugin-jest-formatting": "3.0.0",
8079
"eslint-plugin-jsx-a11y": "6.4.1",
@@ -83,22 +82,22 @@
8382
"eslint-plugin-react-hooks": "4.2.0",
8483
"eslint-plugin-sonarjs": "0.10.0",
8584
"eslint-plugin-testing-library": "4.12.4",
86-
"eslint-plugin-unicorn": "36.0.0",
85+
"eslint-plugin-unicorn": "37.0.1",
8786
"read-pkg-up": "7.0.1",
88-
"typescript": "4.4.3"
87+
"typescript": "4.4.4"
8988
},
9089
"devDependencies": {
9190
"@semantic-release/changelog": "5.0.1",
9291
"@semantic-release/git": "9.0.1",
9392
"@types/jest": "27.0.2",
94-
"eslint": "7.32.0",
93+
"eslint": "8.0.0",
9594
"jest": "27.2.5",
9695
"jest-watch-typeahead": "0.6.5",
9796
"prettier": "2.4.1",
9897
"semantic-release": "17.4.7"
9998
},
10099
"peerDependencies": {
101-
"eslint": ">=7.15.0"
100+
"eslint": ">=8.0.0"
102101
},
103102
"engines": {
104103
"node": ">=12"

src/__tests__/__snapshots__/createConfig.test.js.snap

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@ Object {
7070
"jest/prefer-spy-on": 1,
7171
"jest/prefer-strict-equal": 1,
7272
"jest/prefer-to-be": 1,
73-
"jest/prefer-to-be-null": 1,
74-
"jest/prefer-to-be-undefined": 1,
7573
"jest/prefer-to-contain": 1,
7674
"jest/prefer-to-have-length": 1,
7775
"jest/prefer-todo": 1,
7876
"jest/require-to-throw-message": 0,
7977
"jest/require-top-level-describe": 2,
80-
"jest/valid-describe": 2,
78+
"jest/valid-describe-callback": 2,
8179
"jest/valid-expect": 2,
8280
"jest/valid-expect-in-promise": 2,
8381
"jest/valid-title": 1,
@@ -103,7 +101,6 @@ Object {
103101
"unicorn",
104102
"promise",
105103
"sonarjs",
106-
"inclusive-language",
107104
],
108105
"reportUnusedDisableDirectives": true,
109106
"rules": Object {
@@ -233,7 +230,6 @@ Object {
233230
],
234231
"import/prefer-default-export": 0,
235232
"import/unambiguous": 0,
236-
"inclusive-language/use-inclusive-words": 2,
237233
"indent": 0,
238234
"indent-legacy": 0,
239235
"init-declarations": 0,
@@ -711,6 +707,7 @@ Object {
711707
"unicorn/require-number-to-fixed-digits-argument": 1,
712708
"unicorn/require-post-message-target-origin": 2,
713709
"unicorn/string-content": 0,
710+
"unicorn/template-indent": 1,
714711
"unicorn/throw-new-error": 2,
715712
"use-isnan": 0,
716713
"valid-typeof": 1,
@@ -793,14 +790,12 @@ Object {
793790
"jest/prefer-spy-on": 1,
794791
"jest/prefer-strict-equal": 1,
795792
"jest/prefer-to-be": 1,
796-
"jest/prefer-to-be-null": 1,
797-
"jest/prefer-to-be-undefined": 1,
798793
"jest/prefer-to-contain": 1,
799794
"jest/prefer-to-have-length": 1,
800795
"jest/prefer-todo": 1,
801796
"jest/require-to-throw-message": 0,
802797
"jest/require-top-level-describe": 2,
803-
"jest/valid-describe": 2,
798+
"jest/valid-describe-callback": 2,
804799
"jest/valid-expect": 2,
805800
"jest/valid-expect-in-promise": 2,
806801
"jest/valid-title": 1,
@@ -826,7 +821,6 @@ Object {
826821
"unicorn",
827822
"promise",
828823
"sonarjs",
829-
"inclusive-language",
830824
],
831825
"reportUnusedDisableDirectives": true,
832826
"rules": Object {
@@ -957,7 +951,6 @@ Object {
957951
],
958952
"import/prefer-default-export": 0,
959953
"import/unambiguous": 0,
960-
"inclusive-language/use-inclusive-words": 2,
961954
"indent": 0,
962955
"indent-legacy": 0,
963956
"init-declarations": 0,
@@ -1435,6 +1428,7 @@ Object {
14351428
"unicorn/require-number-to-fixed-digits-argument": 1,
14361429
"unicorn/require-post-message-target-origin": 2,
14371430
"unicorn/string-content": 0,
1431+
"unicorn/template-indent": 1,
14381432
"unicorn/throw-new-error": 2,
14391433
"use-isnan": 0,
14401434
"valid-typeof": 1,
@@ -1517,14 +1511,12 @@ Object {
15171511
"jest/prefer-spy-on": 1,
15181512
"jest/prefer-strict-equal": 1,
15191513
"jest/prefer-to-be": 1,
1520-
"jest/prefer-to-be-null": 1,
1521-
"jest/prefer-to-be-undefined": 1,
15221514
"jest/prefer-to-contain": 1,
15231515
"jest/prefer-to-have-length": 1,
15241516
"jest/prefer-todo": 1,
15251517
"jest/require-to-throw-message": 0,
15261518
"jest/require-top-level-describe": 2,
1527-
"jest/valid-describe": 2,
1519+
"jest/valid-describe-callback": 2,
15281520
"jest/valid-expect": 2,
15291521
"jest/valid-expect-in-promise": 2,
15301522
"jest/valid-title": 1,
@@ -1554,7 +1546,6 @@ Object {
15541546
"unicorn",
15551547
"promise",
15561548
"sonarjs",
1557-
"inclusive-language",
15581549
],
15591550
"reportUnusedDisableDirectives": true,
15601551
"rules": Object {
@@ -1684,7 +1675,6 @@ Object {
16841675
],
16851676
"import/prefer-default-export": 0,
16861677
"import/unambiguous": 0,
1687-
"inclusive-language/use-inclusive-words": 2,
16881678
"indent": 0,
16891679
"indent-legacy": 0,
16901680
"init-declarations": 0,
@@ -2162,6 +2152,7 @@ Object {
21622152
"unicorn/require-number-to-fixed-digits-argument": 1,
21632153
"unicorn/require-post-message-target-origin": 2,
21642154
"unicorn/string-content": 0,
2155+
"unicorn/template-indent": 1,
21652156
"unicorn/throw-new-error": 2,
21662157
"use-isnan": 0,
21672158
"valid-typeof": 1,
@@ -2244,14 +2235,12 @@ Object {
22442235
"jest/prefer-spy-on": 1,
22452236
"jest/prefer-strict-equal": 1,
22462237
"jest/prefer-to-be": 1,
2247-
"jest/prefer-to-be-null": 1,
2248-
"jest/prefer-to-be-undefined": 1,
22492238
"jest/prefer-to-contain": 1,
22502239
"jest/prefer-to-have-length": 1,
22512240
"jest/prefer-todo": 1,
22522241
"jest/require-to-throw-message": 0,
22532242
"jest/require-top-level-describe": 2,
2254-
"jest/valid-describe": 2,
2243+
"jest/valid-describe-callback": 2,
22552244
"jest/valid-expect": 2,
22562245
"jest/valid-expect-in-promise": 2,
22572246
"jest/valid-title": 1,
@@ -2278,7 +2267,6 @@ Object {
22782267
"unicorn",
22792268
"promise",
22802269
"sonarjs",
2281-
"inclusive-language",
22822270
],
22832271
"reportUnusedDisableDirectives": true,
22842272
"rules": Object {
@@ -2408,7 +2396,6 @@ Object {
24082396
],
24092397
"import/prefer-default-export": 0,
24102398
"import/unambiguous": 0,
2411-
"inclusive-language/use-inclusive-words": 2,
24122399
"indent": 0,
24132400
"indent-legacy": 0,
24142401
"init-declarations": 0,
@@ -2886,6 +2873,7 @@ Object {
28862873
"unicorn/require-number-to-fixed-digits-argument": 1,
28872874
"unicorn/require-post-message-target-origin": 2,
28882875
"unicorn/string-content": 0,
2876+
"unicorn/template-indent": 1,
28892877
"unicorn/throw-new-error": 2,
28902878
"use-isnan": 0,
28912879
"valid-typeof": 1,
@@ -2968,14 +2956,12 @@ Object {
29682956
"jest/prefer-spy-on": 1,
29692957
"jest/prefer-strict-equal": 1,
29702958
"jest/prefer-to-be": 1,
2971-
"jest/prefer-to-be-null": 1,
2972-
"jest/prefer-to-be-undefined": 1,
29732959
"jest/prefer-to-contain": 1,
29742960
"jest/prefer-to-have-length": 1,
29752961
"jest/prefer-todo": 1,
29762962
"jest/require-to-throw-message": 0,
29772963
"jest/require-top-level-describe": 2,
2978-
"jest/valid-describe": 2,
2964+
"jest/valid-describe-callback": 2,
29792965
"jest/valid-expect": 2,
29802966
"jest/valid-expect-in-promise": 2,
29812967
"jest/valid-title": 1,
@@ -3001,7 +2987,6 @@ Object {
30012987
"unicorn",
30022988
"promise",
30032989
"sonarjs",
3004-
"inclusive-language",
30052990
"galex",
30062991
],
30072992
"reportUnusedDisableDirectives": true,
@@ -3132,7 +3117,6 @@ Object {
31323117
],
31333118
"import/prefer-default-export": 0,
31343119
"import/unambiguous": 0,
3135-
"inclusive-language/use-inclusive-words": 2,
31363120
"indent": 0,
31373121
"indent-legacy": 0,
31383122
"init-declarations": 0,
@@ -3610,6 +3594,7 @@ Object {
36103594
"unicorn/require-number-to-fixed-digits-argument": 1,
36113595
"unicorn/require-post-message-target-origin": 2,
36123596
"unicorn/string-content": 0,
3597+
"unicorn/template-indent": 1,
36133598
"unicorn/throw-new-error": 2,
36143599
"use-isnan": 0,
36153600
"valid-typeof": 1,
@@ -3692,14 +3677,12 @@ Object {
36923677
"jest/prefer-spy-on": 1,
36933678
"jest/prefer-strict-equal": 1,
36943679
"jest/prefer-to-be": 1,
3695-
"jest/prefer-to-be-null": 1,
3696-
"jest/prefer-to-be-undefined": 1,
36973680
"jest/prefer-to-contain": 1,
36983681
"jest/prefer-to-have-length": 1,
36993682
"jest/prefer-todo": 1,
37003683
"jest/require-to-throw-message": 0,
37013684
"jest/require-top-level-describe": 2,
3702-
"jest/valid-describe": 2,
3685+
"jest/valid-describe-callback": 2,
37033686
"jest/valid-expect": 2,
37043687
"jest/valid-expect-in-promise": 2,
37053688
"jest/valid-title": 1,
@@ -3725,7 +3708,6 @@ Object {
37253708
"unicorn",
37263709
"promise",
37273710
"sonarjs",
3728-
"inclusive-language",
37293711
],
37303712
"reportUnusedDisableDirectives": true,
37313713
"rules": Object {
@@ -3855,7 +3837,6 @@ Object {
38553837
],
38563838
"import/prefer-default-export": 0,
38573839
"import/unambiguous": 0,
3858-
"inclusive-language/use-inclusive-words": 2,
38593840
"indent": 0,
38603841
"indent-legacy": 0,
38613842
"init-declarations": 0,
@@ -4333,6 +4314,7 @@ Object {
43334314
"unicorn/require-number-to-fixed-digits-argument": 1,
43344315
"unicorn/require-post-message-target-origin": 2,
43354316
"unicorn/string-content": 0,
4317+
"unicorn/template-indent": 1,
43364318
"unicorn/throw-new-error": 2,
43374319
"use-isnan": 0,
43384320
"valid-typeof": 1,
@@ -4363,7 +4345,7 @@ Object {
43634345
"typescript": Object {
43644346
"config": undefined,
43654347
"hasTypeScript": false,
4366-
"version": "4.4.3",
4348+
"version": "4.4.4",
43674349
},
43684350
}
43694351
`;
@@ -4573,7 +4555,7 @@ Object {
45734555
"typescript": Object {
45744556
"config": undefined,
45754557
"hasTypeScript": false,
4576-
"version": "4.4.3",
4558+
"version": "4.4.4",
45774559
},
45784560
}
45794561
`;

0 commit comments

Comments
 (0)