jsdoc
JSDoc-leaning preset focused on function documentation tags (@param, @returns, @throws).
What this preset is forâ
Use jsdoc when you want a function-signature documentation baseline that feels familiar to JSDoc-heavy teams.
It is a practical option for:
- mixed JS/TS repositories
- teams migrating toward stronger docs without full TSDoc strictness
- service codebases that mainly care about function contracts
What this preset enablesâ
tsdoc-require-2/requiretsdoc-require-2/require-paramwithenforceFor: ["function"]tsdoc-require-2/require-returnswithenforceFor: ["function"]tsdoc-require-2/require-throwswithenforceFor: ["function"]
Important behavior detailâ
This preset scopes the tag rules to functions only. It does not require @remarks, @typeParam, or tag restrictions.
Config keyâ
tsdocRequire.configs.jsdoc
Flat Config exampleâ
import tsdocRequire from "eslint-plugin-tsdoc-require-2";
export default [tsdocRequire.configs.jsdoc];
When to choose a different presetâ
- Choose
tsdocwhen you need stronger TSDoc conventions and restricted tag vocabulary. - Choose
recommendedwhen function tags would create too much migration noise initially.