Add flex biome adoption (#26550)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": ["./biome.json"],
|
||||
"linter": { "rules": { "nursery": { "useExplicitType": "error" } } }
|
||||
}
|
||||
+1
-1
@@ -110,7 +110,7 @@
|
||||
"rules": {
|
||||
"nursery": {
|
||||
"useQwikValidLexicalScope": "off",
|
||||
"useExplicitType": "warn",
|
||||
"useExplicitType": "info",
|
||||
"noReactForwardRef": "warn",
|
||||
"noTernary": "warn",
|
||||
"noUnresolvedImports": "warn"
|
||||
|
||||
@@ -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