jsdoc/text-escaping
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/text-escaping": "error",
},
},
];Auto-escape certain characters that are input within block and tag descriptions.
/**
* Some things to escape: <a> and > and `test`
*//**
* Some things to escape: <a> and > and `test`
*/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/text-escaping
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/text-escaping": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.
Disallows (or requires descriptions for) @ts-<directive> comments, mirroring @typescript-eslint/ban-ts-comment.
Requires that throw statements are documented with @throws tags.
Catches unnecessary template expressions such as string expressions within a template literal.
Requires @template tags be present when type parameters are used.
Prefers function types over call signatures when there are no other properties.