Skip to content
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: ignorePatterns does not work when files are provided as command arguments #8505

Open
alexandre-combemorel opened this issue Jan 15, 2025 · 1 comment · May be fixed by #8590
Open
Labels
A-linter Area - Linter C-bug Category - Bug

Comments

@alexandre-combemorel
Copy link

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 !

@alexandre-combemorel alexandre-combemorel added A-linter Area - Linter C-bug Category - Bug labels Jan 15, 2025
@1zumii
Copy link
Contributor

1zumii commented Jan 16, 2025

could you provide a minimal reproduce demo? or paste the codes contains lint error in .d.ts file so that i can debug into it more accurately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants