Enforce no-explicit-any; allow in tests
Enable @typescript-eslint/no-explicit-any as an error in the ESLint config to tighten typing across the codebase, and add an override to disable this rule for test files. Also apply non-functional cleanup in packages/proton/src/runtime.ts: reorder/imports and adjust formatting/indentation and string alignment for readability — no behavioral changes.
This commit is contained in:
1 parent
acc5084647
commit
80ee12ecc2
36 files changed
+229
-147
No files matched your search
@@ -1,13 +1,3 @@
|
||||
// Plain JSON value types — defined here (not in @snowluma/onebot/types
|
||||
// where they used to live) so @snowluma/protocol can talk about JSON-shaped
|
||||
// payloads without importing OneBot. The OneBot types module keeps the
|
||||
// names exported via re-export, so existing call sites that say
|
||||
// `import type { JsonValue } from '<…>/onebot/types'` continue to work
|
||||
// unchanged after Phase 3.
|
||||
//
|
||||
// Anything actually OneBot-specific (ApiResponse, OneBotRequest, …)
|
||||
// stays in @snowluma/onebot — only the plain JSON quartet moves here.
|
||||
|
||||
export type JsonPrimitive = string | number | boolean | null;
|
||||
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
export interface JsonObject {
|
||||
|
||||
Reference in new issue
Block a user