From 444b7b72313d62a9c6828ca2e633e8e41a36c559 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Wed, 7 Jan 2026 13:33:19 -0300 Subject: [PATCH] Add flex biome adoption (#26550) --- biome-staged.json | 4 ++++ biome.json | 2 +- lint-staged.config.mjs | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 biome-staged.json diff --git a/biome-staged.json b/biome-staged.json new file mode 100644 index 0000000000..5c973bb0c4 --- /dev/null +++ b/biome-staged.json @@ -0,0 +1,4 @@ +{ + "extends": ["./biome.json"], + "linter": { "rules": { "nursery": { "useExplicitType": "error" } } } +} diff --git a/biome.json b/biome.json index 1d4963e567..5bb3280913 100644 --- a/biome.json +++ b/biome.json @@ -110,7 +110,7 @@ "rules": { "nursery": { "useQwikValidLexicalScope": "off", - "useExplicitType": "warn", + "useExplicitType": "info", "noReactForwardRef": "warn", "noTernary": "warn", "noUnresolvedImports": "warn" diff --git a/lint-staged.config.mjs b/lint-staged.config.mjs index e31db66098..687a6cff80 100644 --- a/lint-staged.config.mjs +++ b/lint-staged.config.mjs @@ -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"], };