You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change will enforce the use of JSDocs in internal validators and make it easier for developers to contribute the validators with correct parameters (and auto-completion)
What is the feature you are proposing to solve the problem?
Using an eslint rule to enforce jsdoc for lib/validators.js
Activity
Trott commentedon Oct 5, 2022
We already use
eslint-plugin-jsdocfor JSDoc linting. We turn on the recommended rules for it:node/.eslintrc.js
Lines 41 to 42 in e84e2e6
But then we turn a bunch of them off:
node/.eslintrc.js
Lines 304 to 314 in e84e2e6
So maybe enabling one of those disabled rules will accomplish what you are looking for?
Trott commentedon Oct 5, 2022
Does #44896 do what you are looking for? Or are there validators in other files that you are looking to apply JSDoc comments to?
anonrig commentedon Oct 5, 2022
Yes this was what I was looking for. Thanks @Trott
lib: require JSDoc in internal validators code