mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
Set noImplicitAnyLet to error in biome.json. Fix the violation in parseCardsJson by typing the parsed variable as unknown. Widen normalizeCardsPayload to accept unknown (it already handles non-object input defensively). Remove now-unnecessary cast in provider-parsers.ts. Change-Id: I57ee46d3179775d5d7c34f35803a44c45061b0ec
39 lines
848 B
JSON
39 lines
848 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": "warn",
|
|
"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"
|
|
}
|
|
}
|
|
}
|