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

Chore: enable additional eslint-plugin-jsdoc rules #12336

Merged
merged 2 commits into from Oct 3, 2019
Merged

Conversation

kaicataldo
Copy link
Member

@kaicataldo kaicataldo commented Sep 29, 2019

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:

What changes did you make? (Give an overview)

Following up on #12332, this enables two more rules for consistency:

I set both to enforce "never" because that seemed like the more common style within the codebase, but I don't have any personal preferences as to which we pick. I do think it would be good if it was consistent, though, since I believe that would reduce overhead for contributors who don't have much experience with JSDoc.

I think it would also be nice to enable require-description, but there are 31 instances of missing descriptions and I wanted to move onto some more important things. Could it be worth making a detailed issue with links to the doc blocks missing description and put the help wanted label on it?

Is there anything you'd like reviewers to focus on?
Do others agree that this is something we should do?

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Sep 29, 2019
@kaicataldo kaicataldo added chore This change is not user-facing and removed triage An ESLint team member will look at this issue soon labels Sep 29, 2019
Copy link
Member

@mysticatea mysticatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Could it be worth making a detailed issue with links to the doc blocks missing description and put the help wanted label on it?

👍

Or maybe we can enable the rule with 31 eslint-disable in order to prevent to increase the comment with missing description.

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@ilyavolodin
Copy link
Member

Personal preference: require-hyphen-before-param-description to always, but I can live with either, to be honest.

@kaicataldo
Copy link
Member Author

@ilyavolodin I have no preference either way and am happy to defer to consensus.

@kaicataldo
Copy link
Member Author

I'm going to go ahead and merge this so as to avoid merge conflicts, but I'm definitely not tied to which style we choose (and would be happy to change it later).

@kaicataldo kaicataldo merged commit 8108f49 into master Oct 3, 2019
@kaicataldo kaicataldo deleted the jsdoc2 branch October 3, 2019 05:47
@kaicataldo
Copy link
Member Author

@mysticatea I like the idea of enabling require-description and using eslint-disable-* comments! Will make a follow up PR.

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Apr 2, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants