jsdoc/check-line-alignment
eslint-plugin-jsdoc
Safe autofix
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-line-alignment": "error",
},
},
];/**
* Desc.
* @param opts The options, for example:
* ```js
* {
* retries: 3,
* }
* ```
* and more.
*/
function quux (opts) {}/**
* @typedef {object} CustomType
* @property {string} property
*/Examples from the ESLint documentation.
jsdoc/check-line-alignment
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-line-alignment": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
Checks that any @template names are actually used in the connected @typedef or type alias.
Reports if JSDoc import() statements point to a package which is not listed in dependencies or devDependencies
This rule reports doc comments that only restate their attached name.
This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.