Skip to content

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

@aparajita

Description

@aparajita

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-bugCategory - Buggood first issueExperience Level - Good for newcomers

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions