style: fix eslint issues (#20862)

* style: fix n/no-deprecated-api

* style: fix no-useless-escape

* style: fix default-case

* style: fix unicorn/prefer-string-slice

* feat!: remove informedainews

the site is gone
This commit is contained in:
Tony
2026-01-13 03:25:37 +08:00
committed by GitHub
parent 242bba6713
commit 6dba3aa744
100 changed files with 211 additions and 250 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
import * as url from 'node:url';
import type { DataItem, Route } from '@/types';
import ofetch from '@/utils/ofetch';
@@ -39,7 +37,7 @@ async function handler(ctx) {
}
const suffix = 'search?o='.concat(order, '&q=', encodeURIComponent(query), '&s=', sort, '&type=Repositories');
const link = url.resolve(host, suffix);
const link = new URL(suffix, host).href;
const response = await ofetch(link, {
headers: {
accept: 'application/json',
+1 -1
View File
@@ -32,7 +32,7 @@ export const route: Route = {
| \`o\` | Sorting Order | \`asc\`, \`desc\` |
| \`s\` | Sorting Criteria | \`stars\`, \`forks\`, \`updated\` |
For instance, the \`/github/topics/framework/l=php&o=desc&s=stars\` route will generate the RSS feed corresponding to this [page](https://github.com/topics/framework?l=php\&o=desc\&s=stars).`,
For instance, the \`/github/topics/framework/l=php&o=desc&s=stars\` route will generate the RSS feed corresponding to this [page](https://github.com/topics/framework?l=php&o=desc&s=stars).`,
};
async function handler(ctx) {