Skip to content

language_server: disable comments are not respected by type aware rules #14396

@mo36924

Description

@mo36924

What version of Oxlint are you using?

1.20.0

What command did you run?

Using the VS Code extension

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

{}

What happened?

Starting with version 1.20.0, disable comments are respected by type aware rules when running the oxlint --type-aware command. But it is not respected in vscode extensions.

version
oxlint: 1.20.0
oxc.oxc-vscode: 1.20.0
oxlint-tsgolint: 0.2.0

In vscode, the following code causes a warning:

// oxlint-disable-next-line no-floating-promises
Promise.resolve();

Metadata

Metadata

Assignees

Labels

A-editorArea - Editor and Language ServerA-linterArea - Linter

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions