mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
chore: Enable typescript/no-explicit-any rule.
This commit is contained in:
@@ -49,6 +49,7 @@ function median(values: number[]): number {
|
||||
|
||||
async function runModel(opts: {
|
||||
label: string;
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
model: Model<any>;
|
||||
apiKey: string;
|
||||
runs: number;
|
||||
|
||||
@@ -193,7 +193,7 @@ for (const [login, lines] of linesByLogin.entries()) {
|
||||
}
|
||||
let user = apiByLogin.get(login);
|
||||
if (!user) {
|
||||
user = fetchUser(login);
|
||||
user = fetchUser(login) || undefined;
|
||||
}
|
||||
if (user) {
|
||||
const contributions = contributionsByLogin.get(login) ?? 0;
|
||||
@@ -256,7 +256,9 @@ function run(cmd: string): string {
|
||||
}).trim();
|
||||
}
|
||||
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
function parsePaginatedJson(raw: string): any[] {
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const items: any[] = [];
|
||||
for (const line of raw.split("\n")) {
|
||||
if (!line.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user