jsdoc/prefer-import-tag
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/prefer-import-tag": "error",
},
},
];/**
* @type {import('eslint').Rule.Node}
*//** @typedef {import('eslint').Rule.Node} RuleNode */
/**
* @type {RuleNode}
*/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/prefer-import-tag
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/prefer-import-tag": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Normalizes labeled links in @see tags to a canonical {@link} form.
Requires that block description, explicit @description, and @param/@returns tag descriptions are written in complete sentences.
Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
Requires that all functions (and potentially other contexts) have examples.
Checks that all files have one @file, @fileoverview, or @overview tag at the beginning of the file.