Skip to content

Commit 10f9b17

Browse files
authored
Allow either import or import-x plugin as a peer dependency (#294)
* Allow either import or import-x plugin as a peer dependency * Updating lock file. * Add changeset.
1 parent b777b44 commit 10f9b17

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.changeset/purple-buttons-lay.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-import-resolver-typescript': patch
3+
---
4+
5+
Allow either eslint-plugin-import-x or eslint-plugin-import plugin as a peer dependency.

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@
6363
},
6464
"peerDependencies": {
6565
"eslint": "*",
66-
"eslint-plugin-import": "*"
66+
"eslint-plugin-import": "*",
67+
"eslint-plugin-import-x": "*"
68+
},
69+
"peerDependenciesMeta": {
70+
"eslint-plugin-import": {
71+
"optional": true
72+
},
73+
"eslint-plugin-import-x": {
74+
"optional": true
75+
}
6776
},
6877
"dependencies": {
6978
"debug": "^4.3.5",

yarn.lock

+6
Original file line numberDiff line numberDiff line change
@@ -6145,6 +6145,12 @@ __metadata:
61456145
peerDependencies:
61466146
eslint: "*"
61476147
eslint-plugin-import: "*"
6148+
eslint-plugin-import-x: "*"
6149+
peerDependenciesMeta:
6150+
eslint-plugin-import:
6151+
optional: true
6152+
eslint-plugin-import-x:
6153+
optional: true
61486154
languageName: unknown
61496155
linkType: soft
61506156

0 commit comments

Comments
 (0)