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

Update recommended config to include new rules #144

Closed
2 tasks done
jfmengels opened this issue Sep 25, 2016 · 5 comments
Closed
2 tasks done

Update recommended config to include new rules #144

jfmengels opened this issue Sep 25, 2016 · 5 comments
Milestone

Comments

@jfmengels
Copy link
Contributor

jfmengels commented Sep 25, 2016

Since activating rules in the recommended config is a breaking change, this should be done only when releasing major versions. In the meantime, new rules are added but turned off

To turn on:

  • no-async-fn-without-await
  • no-duplicate-modifiers
@jfmengels jfmengels added this to the v4 milestone Sep 25, 2016
@novemberborn
Copy link
Member

Since activating rules in the recommended config is a breaking change, this should be done only when releasing major versions.

Why not release a major version though?

@jfmengels
Copy link
Contributor Author

We could, but I don't feel like adding a new major version every month is the way to go.
With v3, we had the excuse of dropping support for Node versions, which was a breaking change, but from now on, we probably won't have this kind of opportunity for a long time.

So yes, releasing major versions is possible and completely up to us, but I feel that the benefit of releasing a major version (= just adding recommended rules) outweighs the benefit of smooth upgrading. Upgrading to a major version is something that users will probably need to do manually and take the time for, even if it ends up being really short and simple.

I prefer waiting for either a breaking change in our rules or external dependency, or just waiting for some time and quite a few rules to pile up.

It's totally a gut choice, let me know if you think we should do major versions more often.

@novemberborn
Copy link
Member

Upgrading to a major version is something that users will probably need to do manually and take the time for, even if it ends up being really short and simple.

Adding the new recommended-but-not-quite rules to their ESLint config takes more time than bumping the version.

@jfmengels
Copy link
Contributor Author

You're right.

Another thing to take into account are bug fixes. The last version (3.1.0) shipped with 2 new rules and a bug fix, which they'll get for free in most cases through the magic of npm and semver. Had we shipped v4 instead, then users with v3 would have to upgrade to v4 to get it.

@novemberborn
Copy link
Member

Sure, but most packages only receive bugfixes in the latest version. That's nothing new.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants