Skip to content

Commit 4cb2cf8

Browse files
authored
fix: typescript peer dependency (typescript-eslint#10373)
1 parent 0cc7919 commit 4cb2cf8

File tree

7 files changed

+19
-52
lines changed

7 files changed

+19
-52
lines changed

packages/eslint-plugin/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,8 @@
9898
},
9999
"peerDependencies": {
100100
"@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",
101-
"eslint": "^8.57.0 || ^9.0.0"
102-
},
103-
"peerDependenciesMeta": {
104-
"typescript": {
105-
"optional": true
106-
}
101+
"eslint": "^8.57.0 || ^9.0.0",
102+
"typescript": ">=4.8.4 <5.8.0"
107103
},
108104
"funding": {
109105
"type": "opencollective",

packages/parser/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"typecheck": "tsc --noEmit"
5050
},
5151
"peerDependencies": {
52-
"eslint": "^8.57.0 || ^9.0.0"
52+
"eslint": "^8.57.0 || ^9.0.0",
53+
"typescript": ">=4.8.4 <5.8.0"
5354
},
5455
"dependencies": {
5556
"@typescript-eslint/scope-manager": "8.17.0",
@@ -68,11 +69,6 @@
6869
"rimraf": "*",
6970
"typescript": "*"
7071
},
71-
"peerDependenciesMeta": {
72-
"typescript": {
73-
"optional": true
74-
}
75-
},
7672
"funding": {
7773
"type": "opencollective",
7874
"url": "https://opencollective.com/typescript-eslint"

packages/type-utils/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"ts-api-utils": "^1.3.0"
5353
},
5454
"peerDependencies": {
55-
"eslint": "^8.57.0 || ^9.0.0"
55+
"eslint": "^8.57.0 || ^9.0.0",
56+
"typescript": ">=4.8.4 <5.8.0"
5657
},
5758
"devDependencies": {
5859
"@jest/types": "29.6.3",
@@ -64,11 +65,6 @@
6465
"rimraf": "*",
6566
"typescript": "*"
6667
},
67-
"peerDependenciesMeta": {
68-
"typescript": {
69-
"optional": true
70-
}
71-
},
7268
"funding": {
7369
"type": "opencollective",
7470
"url": "https://opencollective.com/typescript-eslint"

packages/typescript-eslint/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
"@typescript-eslint/utils": "8.17.0"
5858
},
5959
"peerDependencies": {
60-
"eslint": "^8.57.0 || ^9.0.0"
60+
"eslint": "^8.57.0 || ^9.0.0",
61+
"typescript": ">=4.8.4 <5.8.0"
6162
},
6263
"devDependencies": {
6364
"@jest/types": "29.6.3",
@@ -67,11 +68,6 @@
6768
"rimraf": "*",
6869
"typescript": "*"
6970
},
70-
"peerDependenciesMeta": {
71-
"typescript": {
72-
"optional": true
73-
}
74-
},
7571
"funding": {
7672
"type": "opencollective",
7773
"url": "https://opencollective.com/typescript-eslint"

packages/typescript-estree/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@
7272
"tmp": "*",
7373
"typescript": "*"
7474
},
75-
"peerDependenciesMeta": {
76-
"typescript": {
77-
"optional": true
78-
}
75+
"peerDependencies": {
76+
"typescript": ">=4.8.4 <5.8.0"
7977
},
8078
"funding": {
8179
"type": "opencollective",

packages/utils/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
"@typescript-eslint/typescript-estree": "8.17.0"
7070
},
7171
"peerDependencies": {
72-
"eslint": "^8.57.0 || ^9.0.0"
72+
"eslint": "^8.57.0 || ^9.0.0",
73+
"typescript": ">=4.8.4 <5.8.0"
7374
},
7475
"devDependencies": {
7576
"downlevel-dts": "*",
@@ -78,11 +79,6 @@
7879
"rimraf": "*",
7980
"typescript": "*"
8081
},
81-
"peerDependenciesMeta": {
82-
"typescript": {
83-
"optional": true
84-
}
85-
},
8682
"funding": {
8783
"type": "opencollective",
8884
"url": "https://opencollective.com/typescript-eslint"

yarn.lock

+7-18
Original file line numberDiff line numberDiff line change
@@ -5751,9 +5751,7 @@ __metadata:
57515751
peerDependencies:
57525752
"@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0
57535753
eslint: ^8.57.0 || ^9.0.0
5754-
peerDependenciesMeta:
5755-
typescript:
5756-
optional: true
5754+
typescript: ">=4.8.4 <5.8.0"
57575755
languageName: unknown
57585756
linkType: soft
57595757

@@ -5788,9 +5786,7 @@ __metadata:
57885786
typescript: "*"
57895787
peerDependencies:
57905788
eslint: ^8.57.0 || ^9.0.0
5791-
peerDependenciesMeta:
5792-
typescript:
5793-
optional: true
5789+
typescript: ">=4.8.4 <5.8.0"
57945790
languageName: unknown
57955791
linkType: soft
57965792

@@ -5870,9 +5866,7 @@ __metadata:
58705866
typescript: "*"
58715867
peerDependencies:
58725868
eslint: ^8.57.0 || ^9.0.0
5873-
peerDependenciesMeta:
5874-
typescript:
5875-
optional: true
5869+
typescript: ">=4.8.4 <5.8.0"
58765870
languageName: unknown
58775871
linkType: soft
58785872

@@ -5987,9 +5981,8 @@ __metadata:
59875981
tmp: "*"
59885982
ts-api-utils: ^1.3.0
59895983
typescript: "*"
5990-
peerDependenciesMeta:
5991-
typescript:
5992-
optional: true
5984+
peerDependencies:
5985+
typescript: ">=4.8.4 <5.8.0"
59935986
languageName: unknown
59945987
linkType: soft
59955988

@@ -6008,9 +6001,7 @@ __metadata:
60086001
typescript: "*"
60096002
peerDependencies:
60106003
eslint: ^8.57.0 || ^9.0.0
6011-
peerDependenciesMeta:
6012-
typescript:
6013-
optional: true
6004+
typescript: ">=4.8.4 <5.8.0"
60146005
languageName: unknown
60156006
linkType: soft
60166007

@@ -19550,9 +19541,7 @@ __metadata:
1955019541
typescript: "*"
1955119542
peerDependencies:
1955219543
eslint: ^8.57.0 || ^9.0.0
19553-
peerDependenciesMeta:
19554-
typescript:
19555-
optional: true
19544+
typescript: ">=4.8.4 <5.8.0"
1955619545
languageName: unknown
1955719546
linkType: soft
1955819547

0 commit comments

Comments
 (0)