{ "$schema": "https://biomejs.dev/schemas/2.4.16/schema.json", "files": { "includes": [ "**", "!**/dist", "!.worktrees", "!**/node_modules", "!**/legacy-packages", "!scripts", "!packages/workflow/workflow", "!xiaoju/scripts/bundle.ts", "!false", "!.pnpm-approved-builds.json" ] }, "assist": { "actions": { "source": { "organizeImports": "on" } } }, "formatter": { "indentStyle": "space", "indentWidth": 2, "lineWidth": 100 }, "css": { "parser": { "cssModules": true, "tailwindDirectives": true }, "linter": { "enabled": false } }, "javascript": { "formatter": { "quoteStyle": "double", "semicolons": "always" } }, "overrides": [ { "includes": ["**/__tests__/**"], "linter": { "rules": { "suspicious": { "noExplicitAny": "off", "noConsole": "off" }, "style": { "noNonNullAssertion": "off" } } } }, { "includes": ["**/*.d.ts", "**/vitest.config.*"], "linter": { "rules": { "style": { "noDefaultExport": "off" } } } }, { "includes": ["**/cli.ts", "**/setup.ts"], "linter": { "rules": { "suspicious": { "noConsole": "off" } } } } ], "linter": { "enabled": true, "rules": { "recommended": true, "style": { "noDefaultExport": "error", "useNodejsImportProtocol": "error", "noNamespace": "error", "noParameterProperties": "error", "useImportType": "error", "useShorthandFunctionType": "error", "useConst": "error", "useEnumInitializers": "error" }, "complexity": { "noThisInStatic": "error", "noStaticOnlyClass": "error", "noForEach": "error", "useArrowFunction": "error", "noExcessiveCognitiveComplexity": { "level": "warn", "options": { "maxAllowedComplexity": 15 } } }, "suspicious": { "noExplicitAny": "error", "noVar": "error", "noConsole": "error" }, "correctness": { "noUnusedVariables": "error", "noUnusedImports": "error" }, "nursery": {} } } }