mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 20:09:34 +00:00
Move shared biome.json from lint/ to repo root so it's the single root config. Nested configs (packages/cli, .claude/skills/setup-spa) get `"root": false` via `biome migrate`. This fixes lint failing when run from the repo root. Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
80 lines
2.1 KiB
JSON
80 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 120
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"useLiteralKeys": "off",
|
|
"noForEach": "off",
|
|
"noUselessSwitchCase": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off",
|
|
"useNodejsImportProtocol": "error",
|
|
"useTemplate": "off",
|
|
"useBlockStatements": "error",
|
|
"noParameterAssign": "off",
|
|
"useConst": "error",
|
|
"useDefaultParameterLast": "error",
|
|
"useSelfClosingElements": "error",
|
|
"useSingleVarDeclarator": "error",
|
|
"noUnusedTemplateLiteral": "error",
|
|
"useNumberNamespace": "error",
|
|
"noInferrableTypes": "error",
|
|
"noUselessElse": "error",
|
|
"useImportType": {
|
|
"level": "error",
|
|
"options": {
|
|
"style": "separatedType"
|
|
}
|
|
}
|
|
},
|
|
"correctness": {
|
|
"noUnusedImports": "error",
|
|
"noUnusedVariables": "error",
|
|
"noUnusedFunctionParameters": "warn",
|
|
"noInnerDeclarations": "error"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "warn",
|
|
"noAssignInExpressions": "error",
|
|
"noFallthroughSwitchClause": "error",
|
|
"noDoubleEquals": "error",
|
|
"noExtraNonNullAssertion": "error",
|
|
"noTemplateCurlyInString": "off",
|
|
"noImplicitAnyLet": "error",
|
|
"noGlobalIsNan": "error",
|
|
"noGlobalIsFinite": "error",
|
|
"noControlCharactersInRegex": "off"
|
|
},
|
|
"performance": {
|
|
"recommended": true,
|
|
"noAccumulatingSpread": "error"
|
|
},
|
|
"security": {
|
|
"recommended": true
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"expand": "always",
|
|
"arrowParentheses": "always",
|
|
"quoteStyle": "double",
|
|
"trailingCommas": "all",
|
|
"semicolons": "always",
|
|
"bracketSpacing": true,
|
|
"bracketSameLine": false
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": false
|
|
}
|
|
}
|