Skip to content

linter: ignorePatterns does not work when files are provided as command arguments #8505

@alexandre-combemorel

Description

@alexandre-combemorel

What version of Oxlint are you using?

0.15.6

What command did you run?

oxlint -c .oxlintrc.json --quiet --fix "./tools/config/src/app.config.d.ts"

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "ignorePatterns": ["**/app.config.d.ts", "global.d.ts"],
...
}

What happened?

It seems that the ignorePatterns attribut within the config is ignored when an file path is provided as argument.
So my file ./tools/config/src/app.config.d.ts still get lint in this case. If I don't put any argument in the commande,ignorePatterns works fine.

Referring to this issue it seems to be a bug?

Thanks !

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