Skip to content

Commit

Permalink
feat: only require JSDoc returns when public
Browse files Browse the repository at this point in the history
Trying this out to see whether it seems to be a good idea or not.

Related option: https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#options

Related PR: gajus/eslint-plugin-jsdoc#1156

Related issue: gajus/eslint-plugin-jsdoc#1137
  • Loading branch information
voxpelli committed Nov 28, 2023
1 parent 93a7d3c commit fbd4367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base-configs/jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const config = {
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-property-description': 'off',
'jsdoc/require-returns': ['warn', { 'publicOnly': true }],
'jsdoc/require-returns-description': 'off',
'jsdoc/require-yields': 'off',
'jsdoc/tag-lines': ['warn', 'never', { 'startLines': 1 }],
Expand Down

0 comments on commit fbd4367

Please sign in to comment.