Add flex biome adoption (#26550)

This commit is contained in:
Volnei Munhoz
2026-01-07 13:33:19 -03:00
committed by GitHub
parent 4585d7402d
commit 444b7b7231
3 changed files with 8 additions and 4 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"extends": ["./biome.json"],
"linter": { "rules": { "nursery": { "useExplicitType": "error" } } }
}
+1 -1
View File
@@ -110,7 +110,7 @@
"rules": {
"nursery": {
"useQwikValidLexicalScope": "off",
"useExplicitType": "warn",
"useExplicitType": "info",
"noReactForwardRef": "warn",
"noTernary": "warn",
"noUnresolvedImports": "warn"
+3 -3
View File
@@ -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"],
};