oxc-project / oxc

⚓ A collection of JavaScript tools written in Rust.
https://oxc.rs
MIT License
12.41k stars 454 forks source link

linter: `jest` and `vitest` compatible rules are reported as not supported #7240

Open Sysix opened 3 days ago

Sysix commented 3 days ago

What version of Oxlint are you using?

0.11.1

What command did you run?

npx oxlint -c .oxlint.json

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

{
  "categories": {
    "correctness": "off"
  },
  "rules": {
    "no-identical-title": "error",
//    "vitest/no-identical-title": "error", -- also report jest/no-identical-title not supported
//    "jest/no-identical-title": "error"  -- also reports jest/no-identical-title not supported
  }
}

What happened?

  ! The following rules do not match the currently supported rules:
  | jest/no-identical-title

The same does happend for other rules rules jest/no-focused-tests. I think all current rules are effected which should be the following:

  'consistent-test-it',
  'expect-expect',
  'no-alias-methods',
  'no-conditional-expect',
  'no-conditional-in-test',
  'no-commented-out-tests',
  'no-disabled-tests',
  'no-focused-tests',
  'no-identical-title',
  'no-restricted-jest-methods',
  'no-test-prefixes',
  'prefer-hooks-in-order',
  'valid-describe-callback',
  'valid-expect',
dennis-meitner commented 3 days ago

I'm seeing the same issue with 0.11.1 but with the following: