jsdoc/tag-lines
eslint-plugin-jsdoc
Safe autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/tag-lines": "error",
},
},
];/**
* @param {string} a
* @param {number} b *//** @type {string} */
const a = 1;Examples from the ESLint documentation.
jsdoc/tag-lines
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/tag-lines": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Requires all types/namepaths to be valid JSDoc, Closure compiler, or TypeScript types (configurable in settings).
Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).