Spread biome errors (#26329)

This commit is contained in:
Volnei Munhoz authored and GitHub committed 2025-12-30 23:38:43 +00:00
1 parent b4790dd2aa
commit 8bed6b0899
5 files changed
+87 -31

No files matched your search

+79 -24
View File
@@ -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"
}
}
}
]
}