Skip to content

linter: unicorn/filename-case option ignore should be an array #23250

Description

@Sysix

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?

{
  "categories": {
    "correctness": "off"
  },
  "rules": {
    "unicorn/filename-case": ["error", { "ignore": ["fixtures"] }]
  }
}

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions