Skip to content

Commit a6f40cb

Browse files
renovate[bot]JounQin
authored andcommitted
docs(readme): add a warning for eslint-plugin-i npm installation (import-js#255)
1 parent 796d219 commit a6f40cb

File tree

3 files changed

+400
-206
lines changed

3 files changed

+400
-206
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ pnpm i -D eslint-plugin-import eslint-import-resolver-typescript
5858
yarn add -D eslint-plugin-import eslint-import-resolver-typescript
5959
```
6060

61+
**Important when using `eslint-plugin-i` and `npm`**: Use `npm i -D eslint-plugin-import@eslint-plugin-i@latest eslint-import-resolver-typescript`, or you will end up with both `eslint-plugin-import` and `eslint-plugin-i` in your node_modules.
62+
6163
## Configuration
6264

6365
Add the following to your `.eslintrc` config:

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@
8181
"@mozilla/glean": "^1.3.0",
8282
"@types/debug": "^4.1.7",
8383
"@types/is-core-module": "^2.2.0",
84-
"@types/is-glob": "^4.0.2",
85-
"@types/node": "^18.15.11",
86-
"@types/unist": "^2.0.8",
84+
"@types/is-glob": "^4.0.4",
85+
"@types/node": "^18.18.8",
86+
"@types/unist": "^2.0.10",
8787
"dummy.js": "link:dummy.js",
8888
"react": "^18.2.0",
89-
"size-limit": "^8.2.4",
89+
"size-limit": "^8.2.6",
9090
"size-limit-preset-node-lib": "^0.2.0",
9191
"type-coverage": "^2.25.0",
9292
"typescript": "^5.0.4"
9393
},
9494
"resolutions": {
9595
"eslint-import-resolver-typescript": "link:.",
96-
"eslint-plugin-import": "^2.27.5",
96+
"eslint-plugin-import": "^2.29.0",
9797
"prettier": "^2.8.7"
9898
},
9999
"typeCoverage": {

0 commit comments

Comments
 (0)