Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linter: Overrides property is not working with "Vitest" plugin #9649

Open
i62navpm opened this issue Mar 10, 2025 · 0 comments
Open

linter: Overrides property is not working with "Vitest" plugin #9649

i62navpm opened this issue Mar 10, 2025 · 0 comments
Assignees
Labels
A-linter Area - Linter C-bug Category - Bug

Comments

@i62navpm
Copy link

What version of Oxlint are you using?

0.15.13

What command did you run?

yarn oxlint -c .oxlintrc.json index.test.ts

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

{
  "categories": {
    "style": "error"
  },
  "overrides": [
    {
      "files": ["./index.test.ts"],
      "plugins": ["vitest"]
    }
  ]
}

What happened?

The linter only works when the plugins property is set in the root of the config file, when the plugins property is set in the overrides property, the linter does not work.

This is the config file that works:

{
  "plugins": ["vitest"]
 "categories": {
   "style": "error"
 },
 "overrides": [
 ]
}

But this one doesn't work:

{
  "categories": {
    "style": "error"
  },
  "overrides": [
    {
      "files": ["./index.test.ts"],
      "plugins": ["vitest"]
    }
  ]
}
Screen.Recording.2025-03-10.at.11.02.11.mov
@i62navpm i62navpm added A-linter Area - Linter C-bug Category - Bug labels Mar 10, 2025
@camchenry camchenry self-assigned this Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

2 participants