feat: 引入prettier来保证前端代码风格一致

This commit is contained in:
lanyeeee
2025-07-08 20:56:58 +08:00
parent 03632eb321
commit a5010edd98
7 changed files with 62 additions and 44 deletions
+10
View File
@@ -24,6 +24,9 @@ importers:
'@vitejs/plugin-vue':
specifier: ^5.2.1
version: 5.2.4(vite@6.3.5)(vue@3.5.17(typescript@5.6.3))
prettier:
specifier: 3.6.2
version: 3.6.2
typescript:
specifier: ~5.6.2
version: 5.6.3
@@ -521,6 +524,11 @@ packages:
resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
engines: {node: ^10 || ^12 || >=14}
prettier@3.6.2:
resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
engines: {node: '>=14'}
hasBin: true
rollup@4.44.2:
resolution: {integrity: sha512-PVoapzTwSEcelaWGth3uR66u7ZRo6qhPHc0f2uRO9fX6XDVNrIiGYS0Pj9+R8yIIYSD/mCx2b16Ws9itljKSPg==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
@@ -973,6 +981,8 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
prettier@3.6.2: {}
rollup@4.44.2:
dependencies:
'@types/estree': 1.0.8