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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user