Spread biome errors (#26329)
This commit is contained in:
+79
-24
@@ -27,6 +27,7 @@
|
||||
"!!**/dist",
|
||||
"!!**/build",
|
||||
"!!**/public",
|
||||
"!!companion",
|
||||
"!!public",
|
||||
"!!apps/web/public/embed",
|
||||
"!!packages/prisma/zod",
|
||||
@@ -59,19 +60,89 @@
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"domains": {
|
||||
"next": "recommended",
|
||||
"react": "recommended"
|
||||
},
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"correctness": "warn",
|
||||
"suspicious": "warn",
|
||||
"complexity": "warn",
|
||||
"performance": "warn",
|
||||
"nursery": "warn",
|
||||
"a11y": "warn",
|
||||
"style": "warn",
|
||||
"security": "warn"
|
||||
"a11y": "off"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"includes": ["**/*.tsx"],
|
||||
"javascript": {
|
||||
"jsxRuntime": "transparent"
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": [
|
||||
"apps/web/app/**/page.tsx",
|
||||
"apps/web/app/**/layout.tsx",
|
||||
"apps/web/app/pages/**/*.tsx"
|
||||
],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noDefaultExport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": ["**/*"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"nursery": {
|
||||
"useQwikValidLexicalScope": "warn",
|
||||
"useExplicitType": "warn",
|
||||
"noReactForwardRef": "warn",
|
||||
"noTernary": "warn",
|
||||
"noUnresolvedImports": "warn"
|
||||
},
|
||||
"correctness": {
|
||||
"useImportExtensions": "warn",
|
||||
"noProcessGlobal": "warn",
|
||||
"useExhaustiveDependencies": "warn",
|
||||
"noUnknownProperty": "warn",
|
||||
"noUnreachable": "warn",
|
||||
"noEmptyPattern": "warn",
|
||||
"noSwitchDeclarations": "warn",
|
||||
"useHookAtTopLevel": "warn",
|
||||
"useJsxKeyInIterable": "warn",
|
||||
"noUnsafeOptionalChaining": "warn"
|
||||
},
|
||||
"style": {
|
||||
"useExportsLast": "warn",
|
||||
"noProcessEnv": "warn"
|
||||
},
|
||||
"complexity": {
|
||||
"noExcessiveLinesPerFunction": "warn"
|
||||
},
|
||||
"performance": {
|
||||
"noImgElement": "warn"
|
||||
},
|
||||
"suspicious": {
|
||||
"noReactSpecificProps": "warn",
|
||||
"noDoubleEquals": "warn",
|
||||
"noAssignInExpressions": "warn",
|
||||
"noExplicitAny": "warn",
|
||||
"useIterableCallbackReturn": "warn",
|
||||
"noImplicitAnyLet": "warn",
|
||||
"noRedeclare": "warn",
|
||||
"noControlCharactersInRegex": "warn",
|
||||
"noArrayIndexKey": "warn",
|
||||
"noShadowRestrictedNames": "warn",
|
||||
"noAsyncPromiseExecutor": "warn"
|
||||
},
|
||||
"security": {
|
||||
"noBlankTarget": "warn",
|
||||
"noDangerouslySetInnerHtml": "warn"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": ["packages/lib/**/*.{ts,tsx,js,jsx,mts,mjs,cjs,cts}"],
|
||||
"linter": {
|
||||
@@ -167,22 +238,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": ["companion/**/*.{ts,tsx,js,jsx}"],
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"lineWidth": 100
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": ["apps/website/lib/utils/wordlist/wordlist.ts"],
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteProperties": "preserve"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
const skipWarnings = ["1", "true", "yes", "on"].includes((process.env.SKIP_WARNINGS ?? "").toLowerCase());
|
||||
const skipWarnings = ["1", "true", "yes", "on"].includes(
|
||||
(process.env.SKIP_WARNINGS ?? "").toLowerCase()
|
||||
);
|
||||
|
||||
export default {
|
||||
"(apps|packages|companion)/**/*.{js,ts,jsx,tsx}": (files) =>
|
||||
skipWarnings
|
||||
? `biome lint --write ${files.join(" ")}`
|
||||
: `biome lint --write --error-on-warnings ${files.join(" ")}`,
|
||||
"*.json": (files) => `biome format --write ${files.join(" ")}`,
|
||||
? `biome lint ${files.join(" ")}`
|
||||
: `biome lint --error-on-warnings ${files.join(" ")}`,
|
||||
"*.json": (files) => `biome format ${files.join(" ")}`,
|
||||
"packages/prisma/schema.prisma": ["prisma format"],
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
|
||||
<ol
|
||||
className={cn(
|
||||
"wrap-break-word flex flex-wrap items-center gap-1.5 text-muted-foreground text-sm sm:gap-2.5",
|
||||
className,
|
||||
className
|
||||
)}
|
||||
data-slot="breadcrumb-list"
|
||||
{...props}
|
||||
@@ -51,7 +51,6 @@ function BreadcrumbLink({
|
||||
|
||||
function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
|
||||
return (
|
||||
// biome-ignore lint(a11y/useFocusableInteractive): known
|
||||
<span
|
||||
aria-current="page"
|
||||
aria-disabled="true"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"extends": "@calcom/tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"resolveJsonModule": true,
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": "./src",
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
"react": "^18.0.0 || ^19.0.0",
|
||||
"react-dom": "^18.0.0 || ^19.0.0",
|
||||
"react-is": "^18.2.0",
|
||||
"stripe": "^9.0.0 || ^15.0.0",
|
||||
"zod": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user