Create-react-app: ESLint v6 was released.

Created on 23 Jun 2019  Ā·  15Comments  Ā·  Source: facebook/create-react-app

ESLint v6 was released yesterday. https://github.com/eslint/eslint/releases/tag/v6.0.0
Yet create-react-app has yet not released a new version, which includes the https://github.com/facebook/create-react-app/pull/7219 PR which fixes the https://github.com/facebook/create-react-app/issues/7218 issue.

Just wanted to let you know, that this fix should be released asap. As ESLint v6 is now the latest version on https://www.npmjs.com/package/eslint and a lot of people are going to experience this https://github.com/facebook/create-react-app/issues/7218 issue pretty soon.

needs investigation proposal

Most helpful comment

But couldn't we just push out the change from https://github.com/facebook/create-react-app/pull/7219 which should be backwards compatible so both v5 and v6 users could use it? And then do everything else later in a higher version bump?

All 15 comments

Our users will still be using ESLint 5 until we bump the version, so #7218 shouldn't be an issue. Thanks for the heads up though!

@mrmckeb we may want to test v6 with your ESLint PR?

Our users will still be using ESLint 5 until we bump the version, so #7218 shouldn't be an issue. Thanks for the heads up though!

I may quote @ivan-aksamentov at this point:

Please note that this issue affects users beyond create-react-app, because many projects use eslint-config-react-app as a starting points for their eslint configurations. These users are unable to try Eslint 6 until this is sorted out.

A lot of projects make use of the npmjs.com/package/eslint-config-react-app eslint conf, as well does our project; therefore, the fix to be able to upgrade to ESLint v6 would be much appreciated.

@ndrsllwngr this is on our radar. Once we do appropriate tests have been done we'll do the upgrade. The expectation that we upgrade within 24 hours is not reasonable.

@ndrsllwngr as @bugzpodder said, we're working on this.

With all dependencies, we need to consider breaking changes. In this case, we're worried about a change to one specific rule and are currently discussing that.

Hopefully we can get this in with #7036 - as I want to merge that PR in the next few days.

Also overrides in the config / eslintrc should be wrapped in an array.

Error: ESLint configuration in .eslintrc.js Ā» eslint-config-react-app is invalid:
    - Property "overrides" is the wrong type (expected array but got `{"files….

I’m happy to send a PR but couldn’t find my way to the file I’d need to change…

EDIT: Fixed in https://github.com/facebook/create-react-app/pull/7219 - ignore this comment šŸ¤¦ā€ā™‚

Yes, this was fixed @Primajin - don't worry, I also spotted it yesterday and also went "Oh, already fixed!".

Date of release fix ?

@bugzpodder "The expectation that we upgrade within 24 hours is not reasonable." commented 15 days ago

Any update?

@lonewarrior556 not yet. 3.0.2 should be released soon but no firm date yet.

@mrmckeb Is it possible to just minor bump https://www.npmjs.com/package/eslint-config-react-app with the fix? And not wait on 3.0.2 of https://www.npmjs.com/package/create-react-app?

It's a minor change that fixes a bug, It should be enough to unblock anyone trying to use eslint 6.0

Hi @lonewarrior556, we're waiting for this to be resolved... https://github.com/typescript-eslint/typescript-eslint/issues/644

It's still listing v5 a the dependency. Please feel free to help push that through.

But couldn't we just push out the change from https://github.com/facebook/create-react-app/pull/7219 which should be backwards compatible so both v5 and v6 users could use it? And then do everything else later in a higher version bump?

It seems like every issue that was mentioned in here as a dependency/blocker has been resolved. Any update on the matter?

It seems like every issue that was mentioned in here as a dependency/blocker has been resolved. Any update on the matter?

Yes, it's resolved, but new version is not released yet, so we all are waiting for release 3.1.

Correct, I hope this will be out in the next week :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fson picture fson  Ā·  3Comments

wereHamster picture wereHamster  Ā·  3Comments

stopachka picture stopachka  Ā·  3Comments

Aranir picture Aranir  Ā·  3Comments

Evan-GK picture Evan-GK  Ā·  3Comments