07edb535e6
* fix: pre-commit fail when path contains space * addressed coderabbitai comment
8 lines
303 B
JavaScript
8 lines
303 B
JavaScript
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.map(quotePath).join(" ")}`,
|
|
"packages/prisma/schema.prisma": ["prisma format"],
|
|
};
|