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: jest/expect-expect #7237

Open
markEHVN opened this issue Nov 11, 2024 · 0 comments
Open

linter: jest/expect-expect #7237

markEHVN opened this issue Nov 11, 2024 · 0 comments
Labels
A-linter Area - Linter C-bug Category - Bug

Comments

@markEHVN
Copy link

markEHVN commented Nov 11, 2024

What version of Oxlint are you using?

0.11.1

What command did you run?

yarn oxlint -c .oxlint.json & yarn eslint

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "categories": {
    "correctness": "allow"
  },
  "plugins": ["jest"],
  "env": {
    "jest": true
  },
  "globals": {},
  "settings": {},
  "rules": {
    "no-undef": "error",
    "jest/expect-expect": ["error"]
  }
}

What happened?

I configured [email protected], [email protected] and eslint-plugin-jest. I saw oxlint doesn't cover an edge case when inside an test case I declared expect expression inside an if else logic. Then eslint passed but oxlint caughted an error.

You can see demo at compare-eslint-oxlint

Screenshot 2024-11-11 at 23 17 01
@markEHVN markEHVN added A-linter Area - Linter C-bug Category - Bug labels Nov 11, 2024
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

1 participant