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: unicorn/switch-cases-braces does not support options #8492

Open
aparajita opened this issue Jan 14, 2025 · 0 comments
Open

linter: unicorn/switch-cases-braces does not support options #8492

aparajita opened this issue Jan 14, 2025 · 0 comments
Labels
A-linter Area - Linter C-bug Category - Bug good first issue Experience Level - Good for newcomers

Comments

@aparajita
Copy link

What version of Oxlint are you using?

0.15.6

What command did you run?

oxlint -c oxlint.config.jsonc test.ts

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

{
"$schema": "../../node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn"],
"env": {
"browser": true,
"es6": true,
},
"rules": {
"unicorn/switch-case-braces": ["error", "avoid"],
},
}

What happened?

With the eslint unicorn plugin, I can specify the "avoid" option, which allows me to use switch case braces only when necessary. It would be nice to have the unicorn rule options supported here, or at least document that they are not supported.

@aparajita aparajita added A-linter Area - Linter C-bug Category - Bug labels Jan 14, 2025
@Boshen Boshen added the good first issue Experience Level - Good for newcomers label Jan 21, 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 good first issue Experience Level - Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants