# no-restricted-syntax

Rule `jsdoc/no-restricted-syntax`. Reports when certain comment structures are present.

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2098 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsdoc/no-restricted-syntax` | no | no | package `eslint-plugin-jsdoc` | [docs](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-restricted-syntax.md#repos-sticky-header) |

## Code examples

### Incorrect: the rule reports this

```ts
/**
 *
 */
function quux () {
```

### Correct: the rule accepts this

```ts
/**
 *
 */
function quux () {
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { jsdoc },
    rules: {
      "jsdoc/no-restricted-syntax": "error",
    },
  },
];
```

## Related rules

- [eslint/no-restricted-syntax](https://lintradar.dev/rules/eslint/no-restricted-syntax.md): Disallow specified syntax
- [vue/no-restricted-syntax](https://lintradar.dev/rules/vue/no-restricted-syntax.md): Disallow specified syntax in `<template>`
- [jsdoc/no-missing-syntax](https://lintradar.dev/rules/jsdoc/no-missing-syntax.md): Reports when certain comment structures are always expected.
- [jsdoc/no-unnecessary-type-assertion](https://lintradar.dev/rules/jsdoc/no-unnecessary-type-assertion.md): Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
- [jsdoc/match-name](https://lintradar.dev/rules/jsdoc/match-name.md): Reports the name portion of a JSDoc tag if matching or not matching a given regular expression.
- [jsdoc/normalize-see-links](https://lintradar.dev/rules/jsdoc/normalize-see-links.md): Normalizes labeled links in `@see` tags to a canonical `{@link}` form.

---

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