fancive_obsidian-parallel-r.../biome.json
fancivez be8a424d42 chore: upgrade biome noNonNullAssertion from warn to error
No violations exist in the codebase, so this prevents future regressions.

Change-Id: I2e5fa7fea867f1ad5752e48d277a03ce6d9560d7
2026-04-27 14:11:37 +08:00

39 lines
849 B
JSON

{
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"files": {
"includes": ["main.ts", "src/**/*.ts", "esbuild.config.mjs"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "error",
"noRedundantUseStrict": "off",
"noImplicitAnyLet": "error"
},
"style": {
"noNonNullAssertion": "error",
"useConst": "warn",
"useNodejsImportProtocol": "off",
"useTemplate": "off"
},
"complexity": {
"noForEach": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "all"
}
}
}