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": {
|
"rules": {
|
||||||
"nursery": {
|
"nursery": {
|
||||||
"useQwikValidLexicalScope": "off",
|
"useQwikValidLexicalScope": "off",
|
||||||
"useExplicitType": "warn",
|
"useExplicitType": "info",
|
||||||
"noReactForwardRef": "warn",
|
"noReactForwardRef": "warn",
|
||||||
"noTernary": "warn",
|
"noTernary": "warn",
|
||||||
"noUnresolvedImports": "warn"
|
"noUnresolvedImports": "warn"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ const skipWarnings = ["1", "true", "yes", "on"].includes(
|
|||||||
export default {
|
export default {
|
||||||
"(apps|packages|companion)/**/*.{js,ts,jsx,tsx}": (files) =>
|
"(apps|packages|companion)/**/*.{js,ts,jsx,tsx}": (files) =>
|
||||||
skipWarnings
|
skipWarnings
|
||||||
? `biome lint ${files.join(" ")}`
|
? `biome lint --config-path=biome-staged.json ${files.join(" ")}`
|
||||||
: `biome lint --error-on-warnings ${files.join(" ")}`,
|
: `biome lint --config-path=biome-staged.json --error-on-warnings ${files.join(" ")}`,
|
||||||
"*.json": (files) => `biome format ${files.join(" ")}`,
|
"*.json": (files) => `biome format --config-path=biome-staged.json ${files.join(" ")}`,
|
||||||
"packages/prisma/schema.prisma": ["prisma format"],
|
"packages/prisma/schema.prisma": ["prisma format"],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user