-
Notifications
You must be signed in to change notification settings - Fork 420
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
Investigate "Bundling" Eslint peer Deps #122
Comments
So it turns out, now that npm installs things as flat as possible - ie the package will be in This is not guaranteed though. A great solution from @kentcdodds is to use |
The other option here, is in npm 8+, peerDeps are installed in node_modules, but flat. So I could just remove the peerDep install step entirely and go on with life. https://twitter.com/remcohaszing/status/1605948345834508289 npm 7 was last shipped with Node.js 16.7.0, so probably a bit early for this Also yarn 1, doesnt do this either. |
The ESLint requires plugins to be resolved from the root as Another option is to use the new Eslint config files: https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new |
SCrapping everything. The new eslint config worked great, but I'm not ready to release that to the wild and it's experimental. Turns out Im not the only purpose with this issue - many people one twitter said to just install and That fixes everything - I can now deploy a single install command. Will publish in january |
fixed in 3.2.0 |
The command to remove peerDeps:
|
ESLint configs can't have dependencies, so we rely on people using peerDeps. which is
I'd love to offer:
Investigate if we can bundle parts of this config so we don't need all the peer deps.
There is:
I'd imagine the configs could be easily merged.
The plugins are actual JS - so could potentially be "bundled"
Unsure about parsers.
There will still be peerDeps of TypeSCript / eslint - those can't be bundled.
Collecting info: https://twitter.com/wesbos/status/1605933451802284034
The text was updated successfully, but these errors were encountered: