浏览代码

chore: 升级依赖版本

zhangyuhan 11 月之前
父节点
当前提交
1a7d3ae6d9
共有 2 个文件被更改,包括 5 次插入29 次删除
  1. 0 24
      apps/mobile/.eslintrc.json
  2. 5 5
      package.json

+ 0 - 24
apps/mobile/.eslintrc.json

@@ -1,24 +0,0 @@
-{
-  "env": {
-    "node": true,
-    "browser": true
-  },
-  "rules": {
-    "no-console": "off",
-    "no-debugger": "warn",
-    "indent": ["error", 2, { "SwitchCase": 1 }],
-    "quotes": ["error", "single"]
-  },
-  "extends": [
-    "plugin:vue/essential",
-    "eslint:recommended",
-    "@vue/eslint-config-prettier"
-  ],
-  "globals": {
-    "wx": true,
-    "WeixinJSBridge": true,
-    "JyObj": true,
-    "_hmt": true,
-    "vComponentChart": true
-  }
-}

+ 5 - 5
package.json

@@ -14,8 +14,8 @@
   "scripts": {
     "preinstall": "npx only-allow pnpm",
     "postinstall": "simple-git-hooks",
-    "format": "prettier --write --cache .",
-    "lint": "eslint --cache .",
+    "format": "prettier --write --cache apps/mobile",
+    "lint": "eslint --cache apps/mobile",
     "lint:fix": "eslint --ext .vue,.ts,.js --fix --cache .",
     "dev:doc": "pnpm --filter docs run dev",
     "build:doc": "pnpm --filter docs run build",
@@ -51,15 +51,15 @@
     "typescript": "^5.0.2",
     "vite": "^4.3.9",
     "vite-plugin-html-redirect": "^1.0.4",
-    "eslint": "^8.5.0",
+    "eslint": "^8.57.0",
     "@antfu/eslint-config": "^2.25.1",
     "eslint-plugin-format": "^0.1.2",
     "@unocss/eslint-plugin": "^0.61.9"
   },
   "engines": {
-    "node": ">=16",
-    "pnpm": ">=8"
+    "node": "^18.0.0 || >=20.0.0"
   },
+  "packageManager": "pnpm@9.7.0",
   "simple-git-hooks": {
     "pre-commit": "pnpm exec lint-staged --concurrent false"
   },