Skip to content

Commit 07edb53

Browse files
authored
fix: pre-commit fail when path contains space (calcom#28973)
* fix: pre-commit fail when path contains space * addressed coderabbitai comment
1 parent 75bd1b3 commit 07edb53

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lint-staged.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
const quotePath = (file) => `"${file.replace(/"/g, '\\"')}"`;
2+
13
export default {
24
"(apps|packages|companion)/**/*.{js,ts,jsx,tsx}": (files) =>
3-
`biome lint --reporter summary --config-path=biome-staged.json ${files.join(" ")}`,
5+
`biome lint --reporter summary --config-path=biome-staged.json ${files.map(quotePath).join(" ")}`,
46
"packages/prisma/schema.prisma": ["prisma format"],
57
};

0 commit comments

Comments
 (0)