Add flex biome adoption (#26550)
This commit is contained in:
@@ -5,8 +5,8 @@ const skipWarnings = ["1", "true", "yes", "on"].includes(
|
||||
export default {
|
||||
"(apps|packages|companion)/**/*.{js,ts,jsx,tsx}": (files) =>
|
||||
skipWarnings
|
||||
? `biome lint ${files.join(" ")}`
|
||||
: `biome lint --error-on-warnings ${files.join(" ")}`,
|
||||
"*.json": (files) => `biome format ${files.join(" ")}`,
|
||||
? `biome lint --config-path=biome-staged.json ${files.join(" ")}`
|
||||
: `biome lint --config-path=biome-staged.json --error-on-warnings ${files.join(" ")}`,
|
||||
"*.json": (files) => `biome format --config-path=biome-staged.json ${files.join(" ")}`,
|
||||
"packages/prisma/schema.prisma": ["prisma format"],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user