question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keep eslint-config-react-app's dependencies up-to-date.

See original GitHub issue

Continuing 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
gaearoncommented, Oct 31, 2017

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.

0reactions
mmazzarolocommented, Mar 7, 2018

Hey @gaearon, just to make sure I understood correctly: the eslint-plugin-react-app package release cycle is strictly tied to the react-scripts one, am I right?

Just asking because I’m maintaining eslint-plugin-react-app and this info might be useful.

Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found