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: add eslint-jsdoc-plugin to eslint #1585

Merged
merged 1 commit into from
Jul 12, 2017
Merged

Conversation

jviotti
Copy link
Contributor

@jviotti jviotti commented Jul 11, 2017

This plugin helps us detect some things the built-in jsdoc rules can't,
like whether there is an example or not.

As expected, the addition of this plugin helped detect some minor JSDoc
issues.

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

This plugin helps us detect some things the built-in jsdoc rules can't,
like whether there is an example or not.

As expected, the addition of this plugin helped detect some minor JSDoc
issues.

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Copy link
Contributor

@lurch lurch left a comment

Choose a reason for hiding this comment

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

LGTM

@lurch lurch requested a review from jhermsmeier July 11, 2017 18:54
- error
jsdoc/newline-after-description:
- error
jsdoc/require-example:
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to force an example for every function & method? Seems to me that'd be a bit of overkill, and introduce a lot of noise in the code.

Copy link
Contributor

Choose a reason for hiding this comment

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

There's a few places in this PR where it adds /* eslint-disable jsdoc/require-example */ ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we can enable the exception for things like React components, etc.

@jviotti jviotti merged commit a5b1a92 into master Jul 12, 2017
@jviotti jviotti deleted the eslint-jsdoc-plugin branch July 12, 2017 14:19
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

Successfully merging this pull request may close these issues.

3 participants