Skip to content
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

Switch eslint dependency to 5.x #1271

Closed
LinusU opened this issue Apr 12, 2019 · 9 comments

Comments

@LinusU
Copy link
Member

commented Apr 12, 2019

I think we should change the eslint dependency to ^5.0.0 in our package.json dependencies. This way we'll be compatible whenever our users is using standard together with any other package that places restrictions on the eslint version (i.e. react-scripts). See #1270, #1210, #1256 for some previous discussion

It will also allow people to upgrade to the latest eslint version without waiting on us to release a new version.

Happy to hear of any potential downsides, any thoughts? ☺️

@GaryGSC

This comment has been minimized.

Copy link

commented Jun 11, 2019

ESLint specifically recommends against it.
Using ^ instead of ~ is likely to break CI builds.

@LinusU

This comment has been minimized.

Copy link
Member Author

commented Jun 12, 2019

Ah, hmm, that's unfortunate 😞

@GaryGSC

This comment has been minimized.

Copy link

commented Jun 12, 2019

Yeah. 😕

In other news, eslint@6 is almost out. They cut a release candidate the other day.

@GaryGSC

This comment has been minimized.

Copy link

commented Jun 12, 2019

And by that I mean:

  1. It's time to start looking into version 6. Among other things, it drops support for Node 6 and changes a handful of rules, so that'd definitely represent a major version bump for standard.
  2. Unless there are critical security fixes, eslint@~5.16 is looking to be the final version of eslint@^5. I think you could get a lot of the wins you're hoping for by releasing a version that uses ~5.16.
@feross

This comment has been minimized.

Copy link
Member

commented Jul 5, 2019

In the past, we stopped using ^ because new minor versions would introduce cause subtle rule changes that would cause builds to start failing.

@feross

This comment has been minimized.

Copy link
Member

commented Aug 12, 2019

@LinusU If we just kept up to date with the latest eslint releases better, would this issue be considered resolved?

@GaryGSC

This comment has been minimized.

Copy link

commented Aug 12, 2019

At least from my point of view, yes.

@feross

This comment has been minimized.

Copy link
Member

commented Aug 12, 2019

@GaryGSC Okay, that I can do.

@feross

This comment has been minimized.

Copy link
Member

commented Aug 15, 2019

Closing this issue. We'll just keep ESLint up-to-date more proactively in the future.

@feross feross closed this Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.