Skip to content

oxfmt: ignorePatterns are not applied when passing a file path directly. #16621

@cpojer

Description

@cpojer

I use a pre-commit like this which passes each changed file to oxfmt: https://github.com/nkzw-tech/fate-template/blob/main/git-hooks/pre-commit#L4

When the file is ignored through ignorePatterns, the file will be formatted when passing the file name directly. When just running pnpm format or pnpm format directory/ it applies the ignorePatterns correctly.

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions