695e826dcf
按 Oracle 复核处置全仓 5 处类型断言: - fields.ts: as const → satisfies Record<GeneratedFieldKey, true> - compile.ts: as readonly string[] → ReadonlySet<string>.has() - embed-migrations.ts: JSON.parse as Journal → Zod schema 运行时校验,JSON.parse 显式 unknown - interceptors.ts: 唯一保留的跨包断言(ORPC→Zod)注释扩写为完整背景 - router.tsx: satisfies 非 cast,保留 biome.json 增配 noExplicitAny / noTsIgnore / noNonNullAssertion,防止后续漂移。
58 lines
1.1 KiB
JSON
58 lines
1.1 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"includes": ["**", "!**/routeTree.gen.ts", "!**/migrations.gen.ts"]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"lineEnding": "lf",
|
|
"lineWidth": 120
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"useArrowFunction": "error"
|
|
},
|
|
"correctness": {
|
|
"noReactPropAssignments": "error"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "error"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error",
|
|
"noTsIgnore": "error"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"semicolons": "asNeeded",
|
|
"arrowParentheses": "always"
|
|
}
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
}
|
|
}
|