Skip to content

linter: jsdoc/check-tag-names falsely flags scoped npm modules when using @import #13570

@gwennlbh

Description

@gwennlbh

What version of Oxlint are you using?

latest

What command did you run?

npx oxlint

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

{
   "$schema": "./node_modules/oxlint/configuration_schema.json",
   "plugins": ["jsdoc"]
}

What happened?

When linting the following:

/**
  * @import { Page } from '@playwright/test';
  */

I got a false positive:

  ⚠ eslint-plugin-jsdoc(check-tag-names): Invalid tag name found.
   ╭─[stuff.js:2:27]
 1 │ /**
 2 │  * @import { Page } from '@playwright/test';
   ·                           ──────────────────
 3 │  */
   ╰────
  help: `@playwright/test';` is invalid tag name.

Found 1 warning and 0 errors.
Finished in 5ms on 1 file using 12 threads.

I tried allowing @playwright/test'; as a valid tag name to no avail (but even if it worked, it'd be a workaround at best)

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions