🐛 --staged
throws an error if no files affected
#5064
Labels
S-Needs triage
Status: this issue needs to be triaged
--staged
throws an error if no files affected
#5064
Environment information
What happened?
Running cli commands w/
--staged
throws an error if biome does not have any files to look at. This is problematic when using biome in a pre-commit hook w/ changes to files that biome doesn't format/lint (excluded through config).See example output:
Expected result
It should not throw an error, and instead resolve successfully even if no files are affected.
Code of Conduct
The text was updated successfully, but these errors were encountered: