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
feat(eslint-config): Improve ESLint v7 support by adding plugins to peerDeps #1740
Conversation
To better support ESLint v7 peerDep resolution. See: open-wc#1739
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
To better support ESLint v7 peerDep resolution. See: open-wc#1739
…eslint_v7_peerdeps
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@busterc Sorry for the late response here. I get the general idea, but I think it's weird to have it both as dev and peer dependencies. Ideally we should be able to resolve the path before passing it to eslint, but I don't know if eslint supports that yet. |
@LarsDenBakker Thanks for looking into this! It does seem weird to have plugins as both In the meantime, you'll notice that the One alternative is to include the plugins only in |
Thanks for those references. Seems like it's the best option we have right now then. |
To better support ESLint v7 peer dependency resolution. See: #1739
To better support ESLint v7 peerDep resolution.
See: #1739
When we extend
open-wc/eslint-config
and install it on a project, the various plugins found independencies
are not resolved by ESLint v7:Therefore, we have to manually install each plugin individually as a
devDependencies
for each project that extendsopen-wc/eslint-config
.You'll notice that the
airbnb-base
config includesplugin-import
inpeerDependencies
and they refer to installing peerDeps in their README and recommendinginstall-peerdeps
as a shortcut.Like
airbnb-base
, it would excellent to get to use such a shortcut, but we need those plugins added aspeerDependencies
: