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

jsdoc/check-types preferences should be and fixable #46

Closed
ProLoser opened this issue Oct 25, 2017 · 3 comments
Closed

jsdoc/check-types preferences should be and fixable #46

ProLoser opened this issue Oct 25, 2017 · 3 comments
Labels

Comments

@ProLoser
Copy link

For the (preference) rules about {function} => {Function} and {Boolean} => {boolean}.

I would also like to see common mistakes fixed too: {int} or {integer} or {float} => {number}

@ProLoser ProLoser changed the title jsdoc/check-types preferences should be configurable and fixable jsdoc/check-types preferences should be and fixable Oct 25, 2017
@gajus gajus added the question label Oct 25, 2017
@gajus
Copy link
Owner

gajus commented Oct 25, 2017

There are valid use cases for Function and Boolean, etc. This would be a potentially destructive fix.

@gajus gajus closed this as completed Oct 25, 2017
@ProLoser
Copy link
Author

Then it doesn't make sense why there are rules that flag this if they are valid usecases. Make it configurable if you want the rules but not the fix (which seems contradictory to me)

@gajus
Copy link
Owner

gajus commented Oct 25, 2017

These cases are extremely rare. If your intention is to use {Function}, then either ignore that specific line or disable the rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants