Skip to content

linter: cannot disable no-nested-ternary rule anymore #8485

@jeremy-dupre

Description

@jeremy-dupre

What version of Oxlint are you using?

0.15.6

What command did you run?

oxlint -c .oxlintrc.json src

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

{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es2024": true
},
"settings": {},
"plugins": ["oxc", "typescript", "unicorn"],
"categories": {
"correctness": "error",
"perf": "error",
"suspicious": "error",
"restriction": "error",
"style": "warn",
"pedantic": "warn",
"nursery": "off"
},
"rules": {
"no-nested-ternary": "off",
"eslint/no-nested-ternary": "off",
"unicorn/no-nested-ternary": "off"
}
}

What happened?

Since the new 'eslint/no-nested-ternary' rule appeared in 0.15.x (duplicating/replacing the previous unicorn/no-nested-ternary rule?), it seems it cannot be deactivated anymore. With the above setup the rule is still active and generates warning.
It was not the case in 0.14.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-bugCategory - Bug

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions