style: replace unicorn/no-for-loop w/ typescript/prefer-for-of (#20798)

* style: replace unicorn/no-for-loop w/ typescript/prefer-for-of

* style: fix typescript-eslint/prefer-for-of

* style: fix typescript/no-inferrable-types

* style: fix typescript-eslint/consistent-generic-constructors

* style: typescript-eslint/consistent-type-assertions

* style: fix typescript-eslint/array-type

* fix: revert .entries() in d96ca62d3d80806b0475a54e749decfc07b24701
This commit is contained in:
Tony
2026-01-02 09:42:24 +08:00
committed by GitHub
parent 1352d30978
commit b84bb92a8a
214 changed files with 575 additions and 566 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import { parseDate } from '@/utils/parse-date';
export const handler = async (ctx: Context): Promise<Data> => {
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
const baseUrl: string = 'https://www.python.org';
const baseUrl = 'https://www.python.org';
const targetUrl: string = new URL('downloads', baseUrl).href;
const response = await ofetch(targetUrl);