jsdoc/check-indentation
eslint-plugin-jsdoc
No autofix
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-indentation": "error",
},
},
];/** Indented on first line
*//**
* Some description:
* ```html
* <section>
* <title>test</title>
* </section>
* ```
*/Examples from the ESLint documentation.
jsdoc/check-indentation
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-indentation": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Reports invalid alignment of JSDoc block lines.
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.