Skip to content

linter: oxlint VSCode extension not show warn or error for rules like "no-control-regex" #10029

@markH5

Description

@markH5

What version of Oxlint are you using?

0.16.2

What command did you run?

pnpm oxlint

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

// .oxlintrc.json
{
    "ignorePatterns": [
        "**/*.js"
    ],
    "rules": {
        "no-control-regex": "error", // <- try to let it to "warn" / "off" 
        "no-unused-vars": "error" // <- try to let it to "warn" / "off" , and vscode extension can match it
    }
}

What happened?

oxc vscode extensions version: 0.16.2

Image

run cli and get it

line oxc cli vscode extensions
line 4 match error match error
line 8 match error not match
line 11 match error not match
// Oxc.log
[2025-03-25T06:04:52Z INFO  oxc_language_server] initialize: Options { run: OnType, enable: true, config_path: "", flags: {} }
[2025-03-25T06:04:52Z INFO  oxc_language_server] language server version: "0.16.2"

{   // settings.json
    "oxc.trace.server": "verbose",
}

verbose-Oxc.log

Minimal Reproduction at https://github.com/markH5/oxlint_some_rules_lint_not_show_in_vscode

Similar question, but I think my rules don't need cross-file information #7118

Metadata

Metadata

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions