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
eslint --init
with airbnb config doesn't install all necessary peerDependencies
#6843
Comments
Ideally we could find a way to keep the peerDependencies in sync with the help of a shell command like the one suggested in the eslint-config-airbnb repository. But considering the added amount of work, I think for now it would be acceptable to just update the I'm willing to work on this. |
Looking ahead a bit, I wonder if we could extract some of that information to a configurable JSON file to make maintenance a bit easier? I'm not advocating doing that for this issue-- just thinking it might be a worthwhile refactor later on. |
Agreed, the thought crossed my mind as well. How do we usually approach this? A separate "Chore:" commit, perhaps? |
@vitorbal Yeah, separate chore issue and commit might be the way to go. (Although that could be an Update, not sure.) |
I don't really think that extracting it to JSON file is going to help any. It's already trivial to add dependencies to the init command, since it just requires adding additional string to an array. (see https://github.com/eslint/eslint/pull/6657/files#diff-da527c6839c0e6e4d343b5c77fcdd27cR281) |
The airbnb config may add or remove peer deps at any time, so using the command referenced here, which looks up whatever's in the config's package.json, is going to be the most robust approach. |
What version of ESLint are you using?
3.2.2
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
Was automatically generated by
eslint --init
command (See raw output in the end):What did you do? Please include the actual source code causing the issue.
I called
eslint --init
from the command line. See raw output in the endWhat did you expect to happen?
I expected
eslint --init
to install everything needed for the AirBnB style guide after I selected that I wanted to follow that style guide.What actually happened? Please include the actual, raw output from ESLint.
Two dependencies were missing for
eslint-config-airbnb
to run properly,eslint-plugin-import
andeslint-plugin-jsx-a11y
.Full output starting from a fresh
eslint --init
call:The text was updated successfully, but these errors were encountered: