Skip to content

Commit 69f5773

Browse files
committed
Fix peerDependency warning when used with eslint-plugin-i
Fixes the following warning e.g. in Yarn: ➤ YN0002: │ my-project@workspace:. doesn't provide eslint-plugin-import (p2dacd), requested by eslint-import-resolver-typescript The downside is that in order to support "either or", we need to make both eslint-plugin-import and eslint-plugin-i optional peerDependencies.
1 parent 796d219 commit 69f5773

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

package.json

Lines changed: 10 additions & 1 deletion
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-i": "*"
68+
},
69+
"peerDependenciesMeta": {
70+
"eslint-plugin-import": {
71+
"optional": true
72+
},
73+
"eslint-plugin-i": {
74+
"optional": true
75+
}
6776
},
6877
"dependencies": {
6978
"debug": "^4.3.4",

0 commit comments

Comments
 (0)