-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): Regenerate recommended config #354
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
Conversation
Also fix the bugs in the generation script.
Would you ensure this will be released in the next major version? (semantic-release or conventional commits seem to require |
Should we add a check in CI that regenerates the config and ensures that it isn’t changed from the committed version? |
This PR is related and fixed in #313 too |
@ldrick yeah I know, but your changes are a lot heavier and require some discussion from the core team first. @j-f1 I thought about doing that right now, but I wanted this to be a tiny PR to slip in quickly to fix the issue. @mysticatea - is adding new rules to the recommended config considered a breaking change? If it is breaking, then either:
|
… don't force project config yet
Codecov Report
@@ Coverage Diff @@
## master #354 +/- ##
=======================================
Coverage 97.24% 97.24%
=======================================
Files 67 67
Lines 2357 2357
Branches 336 336
=======================================
Hits 2292 2292
Misses 44 44
Partials 21 21
|
It's better, but I didn't request such a check. I just wanted to make sure it because the commit message didn't contain any sign about breaking changes.
Definitely yes. It's a breaking change because the CI builds which use the recommended config gets reporting the new errors then fail. We must not break user's CI builds without a major release. ESLint Semantic Versioning Policy is useful for plugins as well. Generally, ESLint doesn't update recommended preset when a new rule is added. They consider to update the recommended preset when making a major release, like eslint/eslint#11518. |
We should make note of the elsint semver policy in our readmes for future reference. I'll close this then, considering we're doing a breaking change, we can wait for #313 |
Also fix the bugs in the generation script.
Fixes #353