What version of Oxlint are you using?
latest
What command did you run?
No response
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
The original rule supports ignore only as an array:
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md#ignore
Implemented 2019 here: sindresorhus/eslint-plugin-unicorn#431
oxlint only support it as a string:
|
if let Some(Value::String(val)) = value.get("ignore") { |
|
config.ignore = RegexBuilder::new(val).build().ok(); |
|
} |
What version of Oxlint are you using?
latest
What command did you run?
No response
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "categories": { "correctness": "off" }, "rules": { "unicorn/filename-case": ["error", { "ignore": ["fixtures"] }] } }What happened?
The original rule supports
ignoreonly as an array:https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md#ignore
Implemented 2019 here: sindresorhus/eslint-plugin-unicorn#431
oxlintonly support it as a string:oxc/crates/oxc_linter/src/rules/unicorn/filename_case.rs
Lines 206 to 208 in f89b909