diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs index 40b7dad226dfc8..1db8ae8d3bf889 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"], };