mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-27 23:42:15 +00:00
Biome's scanner walks node_modules and generated build output (e.g. Next.js/Turbopack .next/dev chunks) regardless of files.includes, which only governs lint/format targets, not the module-graph scanner. On this monorepo (112k+ files under node_modules, actively regenerated .next/dev artifacts) that let the biome daemon's memory grow unbounded over a long-lived editor session. Set files.experimentalScannerIgnores to exclude node_modules, .next, .docker, and dist from the scanner, and bump @biomejs/biome from 2.1.1 to 2.5.7 to pick up several intervening scanner/module-graph fixes (deadlock fix in 2.5.3, scanner-triggered memory fix in 2.5.2).
70 lines
1.7 KiB
JSON
70 lines
1.7 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": [
|
|
"**",
|
|
"!**/.docker",
|
|
"!**/.next/**",
|
|
"!**/dist",
|
|
"!**/drizzle/**",
|
|
"!node_modules/**",
|
|
"!packages/server/package.json"
|
|
],
|
|
"maxSize": 2097152,
|
|
"experimentalScannerIgnores": [".next", "node_modules", ".docker", "dist"]
|
|
},
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
"linter": {
|
|
"rules": {
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "off"
|
|
},
|
|
"complexity": {
|
|
"noUselessCatch": "off",
|
|
"noBannedTypes": "off",
|
|
"noUselessFragments": "off"
|
|
},
|
|
"correctness": {
|
|
"useExhaustiveDependencies": "off",
|
|
"noUnsafeOptionalChaining": "off",
|
|
"noUnusedImports": "error",
|
|
"noUnusedFunctionParameters": "error",
|
|
"noUnusedVariables": "off",
|
|
"useHookAtTopLevel": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off",
|
|
"noParameterAssign": "error",
|
|
"useAsConstAssertion": "error",
|
|
"useDefaultParameterLast": "error",
|
|
"useEnumInitializers": "error",
|
|
"useSelfClosingElements": "error",
|
|
"useSingleVarDeclarator": "error",
|
|
"noUnusedTemplateLiteral": "error",
|
|
"useNumberNamespace": "error",
|
|
"noInferrableTypes": "error",
|
|
"noUselessElse": "error"
|
|
},
|
|
"suspicious": {
|
|
"noArrayIndexKey": "off",
|
|
"noExplicitAny": "off",
|
|
"noRedeclare": "off",
|
|
"noTemplateCurlyInString": "off"
|
|
},
|
|
"a11y": {
|
|
"noSvgWithoutTitle": "off",
|
|
"useKeyWithClickEvents": "off",
|
|
"useAriaPropsForRole": "off",
|
|
"useAriaPropsSupportedByRole": "off",
|
|
"noStaticElementInteractions": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|