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,5 +1,6 @@
|
||||
import { RequestUtil, cookieToString, getBknFromCookie } from './request-util';
|
||||
import { createLogger } from '@snowluma/common/logger';
|
||||
import type { JsonObject } from '@snowluma/common/json';
|
||||
|
||||
const log = createLogger('Bridge.Web');
|
||||
|
||||
@@ -8,10 +9,10 @@ export interface GroupEssenceMsgRet {
|
||||
retcode: number;
|
||||
data: {
|
||||
is_end: boolean;
|
||||
msg_list: any[]; // 具体结构视需要补充
|
||||
[key: string]: any;
|
||||
msg_list: JsonObject[]; // 具体结构视需要补充
|
||||
[key: string]: JsonObject[] | boolean | string | number | null;
|
||||
};
|
||||
[key: string]: any;
|
||||
[key: string]: JsonObject | JsonObject[] | boolean | string | number | null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user