-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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-config-airbnb v16.0.0 doesn't work with CRA after eject #1586
Comments
Run If this is the case, then it's a bug in CRA (probably not handling peer deps properly), and it'd be great to file it there. |
What did it turn out to be? |
https://github.com/James2516/eslint-airbnb/blob/master/package.json#L23-L63 |
indeed, eslint-config-airbnb v16 requires v6 of eslint-plugin-jsx-a11y (also, all eslint things should be devDeps, not runtime deps). |
CRA put it in runtime deps. See facebook/create-react-app#3209 |
Same issue here. "eslint-config-airbnb": "^16.1.0", |
Found the issue. After ejecting CRA, there is a dep on eslint-config-react-app which depends on an earlier version of eslint-plugin-jsx-a11y. After removing eslint-config-react-app, and moving all eslint deps to dev-deps, everything started working as expected. |
After moving dev-dependencies run this command. (
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
) |
remove install |
Doesn't work for me too |
Me too. |
https://github.com/James2516/eslint-airbnb
The repo is created with create-react-app + npm run eject.
Running
npm i && npm start
gives an error:This only happens with v16.0.0.
The text was updated successfully, but these errors were encountered: