Skip to content

linter: eslint-plugin-jsdoc(check-tag-names) gives false positive when @ is used inside [,] #10910

Closed
@TheAlexLichter

Description

@TheAlexLichter

What version of Oxlint are you using?

0.16.9

What command did you run?

pnpm oxlint

What does your .oxlintrc.json config file look like?

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

Or any content in definedTags

What happened?

Using definedTags should be a list in addition to the existing tags that are valid. When now using an @, e.g. in the description of @see, it will throw. This does not happen when not using definedTags

oxlint is parsing @parcel/watcher](https://github.com/parcel-bundler/watcher) as a jsdoc tag, when it is not one, as @parcel/watcher](https://github.com/parcel-bundler/watcher) is not in the allowed list of tag names, jsdoc/check-tag-names reports a diagnostic.

Example:

export interface ConfigSchema {
  /**
   * @see [@parcel/watcher](https://github.com/parcel-bundler/watcher)
   */
  watcher: 'chokidar' | 'parcel' | 'chokidar-granular'
}
Image

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions