Skip to content

require-jsdoc: add enableFixer option #595

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

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

brettz9
Copy link
Collaborator

@brettz9 brettz9 commented Jun 28, 2020

feat(require-jsdoc): add enableFixer option; if set to false, will avoid fixer; fixes #372

As per discussion in #372, let me know if you want me to change this to make a break from previous behavior by instead making enableFixer off by default. (If so, I think enableFixer should be added as true on most existing tests so that the docs continue to make clear how/where the fix will appear.)

Also, @gajus, @golopot seems to favor ESLint's approach of only treating something as breaking if it is likely to increase the number of errors. I personally favor an approach which I think is more in line with the spirit of semver by requiring a breaking change if there will be fewer errors (and there was legitimate reason to see them previously as errors and those errors were not the result of a mere bug). If you want to weigh in on this, I think it will save us from some future back-and-forth.

@brettz9 brettz9 requested review from gajus and golopot June 28, 2020 05:39
@brettz9 brettz9 force-pushed the require-jsdoc-enableFixer branch from ee5a081 to 2dced5b Compare June 29, 2020 01:52
@brettz9 brettz9 force-pushed the require-jsdoc-enableFixer branch from 2dced5b to 6958d95 Compare June 29, 2020 06:17
@brettz9
Copy link
Collaborator Author

brettz9 commented Jun 30, 2020

Unless I hear back, I guess I can merge as it is now and make it a breaking change later if you decide you want it as a breaking change.

@brettz9 brettz9 merged commit c39fd75 into gajus:master Jun 30, 2020
@gajus
Copy link
Owner

gajus commented Jun 30, 2020

🎉 This PR is included in version 28.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Jun 30, 2020
@brettz9 brettz9 deleted the require-jsdoc-enableFixer branch June 30, 2020 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty docblocks are added above functions on lint
2 participants