1abc3b4cf4
- Fix import ordering (organizeImports) across multiple packages - Replace forEach with for...of loops (noForEach) - Replace non-null assertions with fallback values (noNonNullAssertion) - Add biome-ignore comments for justified noExplicitAny usages - Remove parameter properties, use explicit class properties (noParameterProperties) - Fix string concatenation to template literals (useTemplate) - Fix format issues (CSS, TypeScript) - Add tailwindDirectives CSS parser config in biome.json - Replace var with const (noVar) Result: 0 errors, 12 warnings (all cognitive complexity, acceptable)
109 lines
2.3 KiB
JSON
109 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
|
|
"files": {
|
|
"includes": [
|
|
"**",
|
|
"!**/dist",
|
|
"!**/node_modules",
|
|
"!**/legacy-packages",
|
|
"!scripts",
|
|
"!packages/workflow/workflow",
|
|
"!xiaoju/scripts/bundle.ts"
|
|
]
|
|
},
|
|
"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"
|
|
},
|
|
"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": {}
|
|
}
|
|
}
|
|
}
|