jsdoc/require-hyphen-before-param-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-hyphen-before-param-description": "error",
},
},
];Requires a hyphen before the @param description (and optionally before @property descriptions).
/**
* @param foo Foo.
*/
function quux () {/**
* @param foo - Foo.
*/
function quux () {Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
jsdoc/require-hyphen-before-param-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-hyphen-before-param-description": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Checks that all files have one @file, @fileoverview, or @overview tag at the beginning of the file.
Requires that all functions (and potentially other contexts) have examples.
Requires that Promise rejections are documented with @rejects tags.
Requires that block description, explicit @description, and @param/@returns tag descriptions are written in complete sentences.