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.
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#L4When the file is ignored through
ignorePatterns, the file will be formatted when passing the file name directly. When just runningpnpm formatorpnpm format directory/it applies theignorePatternscorrectly.