Closed scottmmjackson closed 1 year ago
This is possible via settings:
settings: {
jsdoc: {
tagNamePreference: {
returns: 'return',
},
},
},
Closing as that should resolve, though feel free to comment further as needed.
https://jsdoc.app/tags-returns.html
Expected behavior
@return
should either be acceptable or configurable as a preferred form of@returns
. Some IDEs (notably IDEA) will autocomplete@return
, and some Java teams will prefer this as well.Actual behavior
produces a
jsdoc/require-returns
error.ESLint Config
ESLint sample
See above
Environment
eslint-plugin-jsdoc
version: ^18.11.0