jsdoc/ts-method-signature-style
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/ts-method-signature-style": "error",
},
},
];/**
* @param {{
* func(arg: string): number
* }} someName
*//**
* @param {{
* func: (arg: string) => number
* }}
*/Examples from the ESLint documentation.
jsdoc/ts-method-signature-style
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/ts-method-signature-style": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Requires that all functions (and potentially other contexts) have a description.
Requires that each JSDoc line starts with an *.
If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
This rule reports doc comments that only restate their attached name.
Reports if JSDoc import() statements point to a package which is not listed in dependencies or devDependencies