jsdoc/require-next-type
eslint-plugin-jsdoc
No autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-next-type": "error",
},
},
];/**
* @next
*//**
* @next {SomeType}
*/Examples from the ESLint documentation.
jsdoc/require-next-type
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-next-type": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforces lines (or no lines) before, after, or between tags.
Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
Requires all types/namepaths to be valid JSDoc, Closure compiler, or TypeScript types (configurable in settings).