-
-
Notifications
You must be signed in to change notification settings - Fork 169
feat(check-param-names, check-property-names): add enableFixer option
#531
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
chiawendt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am more inclined to change to rule to never fix this case, without an option. There are other rules in the ecosystem similar to this case: no-dupe-keys, no-duplicate-case, and imoprt/no-duplicate. They do not provides fixes. The general idea is that "if the fix could break peoples' code, don't fix".
People can review fixes before committing them (and really should), so it can still save them time even if the user wishes to opt in to enable a potentially over-aggressive fixer. And in our case, in the vast majority of cases, at worst it should only strip out a useful comment. Also, these fixers have been in place for some time without complaint--I'm only now giving the opportunity to disable them. I'm ok with a breaking change to change the default though if you want to err on the side of caution. |
|
That would be great, thanks. And it should be a minor release. https://github.com/eslint/eslint#semantic-versioning-policy |
|
Sure, though it breaks in the sense of no longer working quite as before, it at least won't lead to more broken builds. |
|
I've switched to the new default (of |
251f351 to
0ccbe17
Compare
0ccbe17 to
3b2e250
Compare
|
@golopot : It'd be great if you could find time to take a look to see that my latest changes are ok and if this is ready for merging (I've rebased, but the changes were made in the final commit of this PR). I intend to look at fixing #532 tomorrow.) |
chiawendt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
|
🎉 This PR is included in version 25.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Allows disabling duplicate fixing.