Files
2026-07-13 12:52:40 +08:00

141 lines
2.8 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.4.5/schema.json",
"root": false,
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": true
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noConfusingVoidType": "info",
"noExplicitAny": "info",
"noAssignInExpressions": "info",
"noArrayIndexKey": "info",
"noUnknownAtRules": {
"level": "info",
"options": {
"ignore": [
"tailwind",
"layer",
"apply",
"responsive",
"screen",
"variants"
]
}
}
},
"style": {
"noNonNullAssertion": "info",
"noRestrictedImports": {
"level": "error",
"options": {
"patterns": [
{
"group": [
"@cline/llms/*",
"@cline/agents/*",
"@cline/core/*",
"@cline/shared/*",
"**/llms/src/**",
"**/agents/src/**",
"**/core/src/**",
"**/shared/src/**",
"**/rpc/src/**",
"**/scheduler/src/**",
"!@cline/llms/node",
"!@cline/llms/browser",
"!@cline/llms/runtime",
"!@cline/llms/runtime/*",
"!@cline/llms/models",
"!@cline/llms/models/*",
"!@cline/llms/providers",
"!@cline/llms/providers/*",
"!@cline/agents/node",
"!@cline/agents/browser",
"!@cline/core/hub",
"!@cline/core/telemetry",
"!@cline/core/rpc",
"!@cline/shared/browser",
"!@cline/shared/types",
"!@cline/shared/storage",
"!@cline/shared/db"
],
"message": "Use package entrypoints for cross-package imports. Do not import from another package's internal files."
}
]
}
}
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"css": {
"parser": {
"tailwindDirectives": true
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"json": {
"formatter": {
"enabled": true
}
},
"overrides": [
{
"includes": ["docs/**"],
"linter": {
"rules": {
"a11y": {
"noStaticElementInteractions": "off",
"useKeyWithClickEvents": "off",
"noSvgWithoutTitle": "off",
"useFocusableInteractive": "off",
"useSemanticElements": "off",
"useAriaPropsForRole": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"suspicious": {
"noDocumentCookie": "off"
}
}
}
},
{
"includes": ["../apps/cli/src/tui/**"],
"linter": {
"rules": {
"a11y": {
"noStaticElementInteractions": "off",
"useKeyWithClickEvents": "off"
}
}
}
}
]
}