From ea9221702025484719175010faaa3472b80d32f9 Mon Sep 17 00:00:00 2001 From: jqtmviyu Date: Sat, 19 Apr 2025 11:50:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E6=9B=B4=E6=96=B0=20@vue/tsconf?= =?UTF-8?q?ig=20=E4=BF=AE=E5=A4=8DimportsNotUsedAsValues=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=9B=E6=B7=BB=E5=8A=A0package.json=E6=B7=BB=E5=8A=A0lint-s?= =?UTF-8?q?taged=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 7 ++++++- pnpm-lock.yaml | 20 ++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 146629b..47f949a 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,11 @@ "prepare": "husky install", "lint-staged": "lint-staged" }, + "lint-staged": { + "*.{js,ts,vue}": [ + "eslint --fix" + ] + }, "dependencies": { "@dcloudio/uni-app": "3.0.0-4050720250324001", "@dcloudio/uni-app-harmony": "3.0.0-4050720250324001", @@ -72,7 +77,7 @@ "@vue/eslint-config-prettier": "^10.2.0", "@vue/eslint-config-typescript": "^14.5.0", "@vue/runtime-core": "^3.5.13", - "@vue/tsconfig": "^0.1.3", + "@vue/tsconfig": "^0.7.0", "eslint": "^9.24.0", "eslint-plugin-vue": "^10.0.0", "husky": "^9.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1665901..0acfdf6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -106,8 +106,8 @@ importers: specifier: ^3.5.13 version: 3.5.13 '@vue/tsconfig': - specifier: ^0.1.3 - version: 0.1.3(@types/node@22.14.1) + specifier: ^0.7.0 + version: 0.7.0(typescript@4.9.5)(vue@3.5.13(typescript@4.9.5)) eslint: specifier: ^9.24.0 version: 9.24.0(jiti@2.4.2) @@ -1812,12 +1812,15 @@ packages: '@vue/shared@3.5.13': resolution: {integrity: sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==} - '@vue/tsconfig@0.1.3': - resolution: {integrity: sha512-kQVsh8yyWPvHpb8gIc9l/HIDiiVUy1amynLNpCy8p+FoCiZXCo6fQos5/097MmnNZc9AtseDsCrfkhqCrJ8Olg==} + '@vue/tsconfig@0.7.0': + resolution: {integrity: sha512-ku2uNz5MaZ9IerPPUyOHzyjhXoX2kVJaVf7hL315DC17vS6IiZRmmCPfggNbU16QTvM80+uYYy3eYJB59WCtvg==} peerDependencies: - '@types/node': '*' + typescript: 5.x + vue: ^3.4.0 peerDependenciesMeta: - '@types/node': + typescript: + optional: true + vue: optional: true abab@2.0.6: @@ -6891,9 +6894,10 @@ snapshots: '@vue/shared@3.5.13': {} - '@vue/tsconfig@0.1.3(@types/node@22.14.1)': + '@vue/tsconfig@0.7.0(typescript@4.9.5)(vue@3.5.13(typescript@4.9.5))': optionalDependencies: - '@types/node': 22.14.1 + typescript: 4.9.5 + vue: 3.5.13(typescript@4.9.5) abab@2.0.6: {}