# check-tag-names

Rule `jsdoc/check-tag-names`. Reports invalid block tag names.

- Source: jsdoc
- Technologies: JSDoc
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 10.6M weekly downloads of presets that enable it
- Trend: +35.6% last quarter
- Rank: #869 by reach, #1060 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsdoc/check-tag-names` | yes | safe | package `eslint-plugin-jsdoc` | [docs](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header) |
| Oxlint | `jsdoc/check-tag-names` | no | no | plugin `jsdoc`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/jsdoc/check-tag-names.html) |

## Code examples

### Incorrect: the rule reports this

```ts
/**
 * @desc Does a thing.
 */
function quux () {}
```

### Correct: the rule accepts this

```js
arg
argument
const
constructor
defaultvalue
desc
emits
exception
extends
fileoverview
func
host
method
overview
prop
return
var
virtual
yield
```

```js
"tagNamePreference": {
    "return": "return",
}
```

```js
template
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import jsdoc from "eslint-plugin-jsdoc";

export default [
  {
    plugins: { jsdoc },
    rules: {
      "jsdoc/check-tag-names": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsdoc"
  ],
  "rules": {
    "jsdoc/check-tag-names": "error"
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [JSDoc recommended](https://lintradar.dev/presets/jsdoc-recommended.md) | ESLint | `eslint-plugin-jsdoc` | 37 | 8.1M | +23.8% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [JSDoc recommended for TypeScript](https://lintradar.dev/presets/jsdoc-recommended-typescript.md) | ESLint | `eslint-plugin-jsdoc` | 34 | 8.1M | +23.8% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [jsdoc/require-param-description](https://lintradar.dev/rules/jsdoc/require-param-description.md): Requires that each `@param` tag has a `description` value.
- [jsdoc/no-defaults](https://lintradar.dev/rules/jsdoc/no-defaults.md): This rule reports defaults being used on the relevant portion of `@param` or `@default`.
- [jsdoc/require-yields](https://lintradar.dev/rules/jsdoc/require-yields.md): Requires yields are documented with `@yields` tags.
- [jsdoc/no-multi-asterisks](https://lintradar.dev/rules/jsdoc/no-multi-asterisks.md): Prevents use of multiple asterisks at the beginning of lines.
- [jsdoc/require-returns-description](https://lintradar.dev/rules/jsdoc/require-returns-description.md): Requires that the `@returns` tag has a `description` value (not including `void`/`undefined` type returns).
- [jsdoc/require-property-name](https://lintradar.dev/rules/jsdoc/require-property-name.md): Requires that all `@property` tags have names.

---

Web page: https://lintradar.dev/rules/jsdoc/check-tag-names. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
