Skip to content

Commit

Permalink
🐞 fix: 部分类型错误
Browse files Browse the repository at this point in the history
- 新增 米游社 综合接口
  • Loading branch information
imsyy committed Dec 3, 2024
1 parent afb7c7d commit 098b808
Show file tree
Hide file tree
Showing 37 changed files with 1,653 additions and 745 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ["**/node_modules", "**/dist", "**/.gitignore", "**/logs", "**/docker-compose.yml"],
},
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
35 changes: 20 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dailyhot-api",
"version": "2.0.6",
"version": "2.0.7",
"description": "An Api on Today's Hot list",
"keywords": [
"API",
Expand Down Expand Up @@ -28,38 +28,43 @@
],
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
"lint": "eslint .",
"dev": "cross-env NODE_ENV=development tsx watch --no-cache src/index.ts",
"dev:cache": "cross-env NODE_ENV=development tsx watch src/index.ts",
"build": "tsc --project tsconfig.json",
"start": "cross-env NODE_ENV=development tsx dist/index.js"
},
"type": "module",
"dependencies": {
"@hono/node-server": "^1.13.5",
"axios": "^1.7.7",
"@hono/node-server": "^1.13.7",
"axios": "^1.7.8",
"chalk": "^5.3.0",
"cheerio": "1.0.0-rc.12",
"cheerio": "^1.0.0",
"dayjs": "^1.11.13",
"dotenv": "^16.4.5",
"dotenv": "^16.4.6",
"feed": "^4.2.2",
"hono": "^4.6.9",
"hono": "^4.6.12",
"md5": "^2.3.0",
"node-cache": "^5.1.2",
"puppeteer-cluster": "^0.24.0",
"rss-parser": "^3.13.0",
"winston": "^3.16.0",
"winston": "^3.17.0",
"xml2js": "^0.6.2"
},
"devDependencies": {
"@types/node": "^20.17.6",
"@eslint/js": "^9.16.0",
"@types/md5": "^2.3.5",
"@types/node": "^22.10.1",
"@types/xml2js": "^0.4.14",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"prettier": "^3.3.3",
"tsx": "^3.14.0",
"typescript": "^5.6.3"
"eslint": "^9.16.0",
"globals": "^15.13.0",
"prettier": "^3.4.1",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0"
},
"engines": {
"node": ">=20"
Expand Down
Loading

0 comments on commit 098b808

Please sign in to comment.