Keep eslint-config-react-app's dependencies up-to-date.
See original GitHub issueContinuing on the issue brought up here: https://github.com/facebookincubator/create-react-app/issues/2631
I think eslint-config-react-app would be easier to use if its peer dependencies were up-to-date with their packages’ latest breaking changes. This just happened to me:
- Tried to lint a package extending “react-app”
- ESLint complains that I don’t have “react-app” installed
- Installed it with the usual
npm i -g eslint-config-react-app
- ESLint complains again about the missing peer dependencies, which NPM in all its wisdom and usefulness won’t install for us automatically
- Supposedly install them all with the usual
npm i -g eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react babel-eslint
- See weird error, “Definition for rule ‘jsx-a11y/href-no-hash’ was not found”
- Google and finally find these specific versions I need to install: https://github.com/facebookincubator/create-react-app/tree/master/packages/eslint-config-react-app#usage-outside-of-create-react-app
It’d be nice if the latest versions just worked, since I typically install the latest versions of packages. and I imagine other people do, too.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:16 (8 by maintainers)
Top Results From Across the Web
eslint-config-react-app - npm
First, install this package and ESLint. npm install --save-dev eslint-config-react-app eslint@^8.0.0. Then create a file named ...
Read more >eslint-config-react-app - npm package - Snyk
All security vulnerabilities belong to production dependencies of direct and indirect packages. ... You can connect your project's repository to Snyk to stay...
Read more >create-react-app dependency version issues with React 18
I wanted to take the custom templating approach but when I run "npm install cra-template" in a different directory I get the following...
Read more >12 essential ESLint rules for React - LogRocket Blog
If your application uses Create React App, you most likely won't need to install any of the plugins mentioned in this article —...
Read more >Creating a React App - Codecademy
dependencies contains all the required Node modules and versions required for the application. In the picture above, you'll see six dependencies. The first ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is not supported to use Airbnb config with CRA project without ejecting. In fact it’s not supported to use any extra config at all until you eject.
We’ll bump the version eventually, but the use case you rely on has never been supported in the first place.
Hey @gaearon, just to make sure I understood correctly: the
eslint-plugin-react-app
package release cycle is strictly tied to thereact-scripts
one, am I right?Just asking because I’m maintaining eslint-plugin-react-app and this info might be useful.
Thanks!