-
-
Notifications
You must be signed in to change notification settings - Fork 496
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: cannot disable no-nested-ternary rule anymore #8485
Comments
Related to #5714 Should we change it? oxc/crates/oxc_linter/src/config/config_builder.rs Lines 242 to 243 in c15af02
|
@shulaoda maybe not the filter condition caused this issue? oxc/crates/oxc_linter/src/rules/eslint/no_nested_ternary.rs Lines 41 to 43 in c15af02
|
Yes, I made a mistake. |
i guess problem is in this branch, only remove one of these rules with same name. result that oxc/crates/oxc_linter/src/config/rules.rs Lines 133 to 136 in c15af02
|
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
The text was updated successfully, but these errors were encountered: