-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove eslint-plugin-import
from peerDeps
#248
Conversation
|
@JounQin Should this PR be included in a minor version bump or a patch one? |
Can you link some documents that npm will install peer dependencies automatically? |
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#peerdependencies Here I quote:
I have adapted the new ESLint Flat Configuration (which will become the default configuration format of ESLint 9), which allows install and import https://github.com/SukkaW/eslint-config-sukka/blob/238c5ff109bde19e0e6c92ae40339d43a6338b89/packages/ts/src/index.ts#L10 Also, apparently someone else is facing the same issue, see another PR: #243 |
If you use
I believe I didn't notice #243 previously, @wojtekmaj does |
@JounQin Oh wow, didn't think about that! Yes, this works! |
Sadly yes. However, that's a different problem: |
The answer to that problem, or rather a workaround, is Yarn's |
So this PR can't resolve such problems, right? |
Well I still want to install |
I personally still recommend to use alias instead, because it is an alias. And as you described when using with other |
Close due to inactive |
Now installing
|
It seems you're importing |
If there is a simple minimum reproduction, I would have provided it already, but there would always be duplicated |
Can you use |
The PR removes
eslint-plugin-import
from thepeerDependencies
, assuming that theeslint-plugin-i
oreslint-plugin-import
is most likely already present before installingeslint-import-resolver-typescript
.I am using
eslint-import-resolver-typescript
witheslint-plugin-i
, and I don't want npm/npm to installeslint-plugin-import
frompeerDependencies
automatically.