Scheduling infrastructure for absolutely everyone.
fix: pre-commit fail when path contains space (#28973)
Shaizuu07edb535e679
diff --git a/lint-staged.config.mjs b/lint-staged.config.mjsindex 40b7dad226d..1db8ae8d3bf 100644--- a/lint-staged.config.mjs+++ b/lint-staged.config.mjs@@ -1,5 +1,7 @@+const quotePath = (file) => `"${file.replace(/"/g, '\\"')}"`;+export default {"(apps|packages|companion)/**/*.{js,ts,jsx,tsx}": (files) =>- `biome lint --reporter summary --config-path=biome-staged.json ${files.join(" ")}`,+ `biome lint --reporter summary --config-path=biome-staged.json ${files.map(quotePath).join(" ")}`,"packages/prisma/schema.prisma": ["prisma format"],};