Skip to content

Commit da8fd5c

Browse files
committed
chore: update deps
1 parent 5f4a4db commit da8fd5c

File tree

25 files changed

+1188
-1124
lines changed

25 files changed

+1188
-1124
lines changed

.github/renovate.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["github>coderwyd/renovate-config"]
2+
extends: ['github>coderwyd/renovate-config'],
33
}

.vscode/settings.json

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"typescript.tsdk": "./node_modules/typescript/lib",
33
"npm.packageManager": "pnpm",
4-
// Enable the ESlint flat config support
5-
"eslint.experimental.useFlatConfig": true,
64

7-
// Disable the default formatter, use eslint instead
8-
"prettier.enable": false,
5+
"prettier.enable": true,
96
"editor.formatOnSave": false,
107

118
// Auto fix
@@ -14,24 +11,9 @@
1411
"source.organizeImports": "never"
1512
},
1613

17-
// Enable eslint for all supported languages
18-
"eslint.validate": [
19-
"html",
20-
"css",
21-
"less",
22-
"scss",
23-
"json",
24-
"jsonc",
25-
"yaml",
26-
"yml",
27-
"markdown",
28-
"toml"
29-
],
3014
"css.validate": false,
3115
"less.validate": false,
3216
"scss.validate": false,
33-
"stylelint.enable": true,
34-
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
3517
// "path-intellisense.mappings": {
3618
// "@/": "${workspaceRoot}/",
3719
// "#/": "${workspaceRoot}/"

build/plugins/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ interface Options {
1414
enableAnalyze?: boolean
1515
}
1616

17-
export function createVitePlugins({
18-
isBuild,
19-
compress,
20-
}: Options) {
17+
export function createVitePlugins({ isBuild, compress }: Options) {
2118
const vitePlugins: (PluginOption | PluginOption[])[] = [
2219
vue(),
2320
vueJsx(),

build/plugins/info.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export function viteBuildInfo(): Plugin {
1919
outDir = resolvedConfig.build?.outDir ?? 'dist'
2020
},
2121
buildStart() {
22-
if (config.command === 'build')
23-
startTime = dayjs(new Date())
22+
if (config.command === 'build') startTime = dayjs(new Date())
2423
},
2524
closeBundle() {
2625
if (config.command === 'build') {

build/plugins/unplugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ export default [
1414
}),
1515
Icons({
1616
customCollections: {
17-
custom: FileSystemIconLoader(getSrcPath('src/assets/icons'), svg =>
18-
svg.replace(/^<svg /, '<svg fill="currentColor" ')),
17+
custom: FileSystemIconLoader(getSrcPath('src/assets/icons'), (svg) =>
18+
svg.replace(/^<svg /, '<svg fill="currentColor" '),
19+
),
1920
},
2021
}),
2122
Components({

build/utils/index.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ function sum(arr: number[]) {
88
}
99

1010
function formatBytes(bytes: number, decimals = 2) {
11-
if (!+bytes)
12-
return '0 Bytes'
11+
if (!+bytes) return '0 Bytes'
1312

1413
const k = 1024
1514
const dm = decimals < 0 ? 0 : decimals
@@ -27,8 +26,7 @@ export function getPackageSize(
2726
fileListTotal: number[] = [],
2827
): void {
2928
readdir(folder, (err, files: string[]) => {
30-
if (err)
31-
throw err
29+
if (err) throw err
3230
let count = 0
3331
const checkEnd = () => {
3432
if (++count === files.length) {
@@ -37,13 +35,11 @@ export function getPackageSize(
3735
}
3836
files.forEach((item: string) => {
3937
stat(`${folder}/${item}`, (err, stats) => {
40-
if (err)
41-
throw err
38+
if (err) throw err
4239
if (stats.isFile()) {
4340
fileListTotal.push(stats.size)
4441
checkEnd()
45-
}
46-
else if (stats.isDirectory()) {
42+
} else if (stats.isDirectory()) {
4743
getPackageSize(`${folder}/${item}/`, checkEnd, fileListTotal)
4844
}
4945
})

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-starter",
33
"type": "module",
44
"version": "1.0.0",
5-
"packageManager": "pnpm@9.10.0",
5+
"packageManager": "pnpm@9.11.0",
66
"scripts": {
77
"bootstrap": "npm install",
88
"start": "npm run dev",
@@ -19,43 +19,43 @@
1919
"postinstall": "simple-git-hooks"
2020
},
2121
"dependencies": {
22-
"@vueuse/core": "^11.0.3",
22+
"@vueuse/core": "^11.1.0",
2323
"axios": "^1.7.7",
2424
"dayjs": "^1.11.13",
2525
"lodash-es": "^4.17.21",
2626
"pinia": "^2.2.2",
2727
"qs": "^6.13.0",
28-
"vue": "^3.5.4",
29-
"vue-router": "^4.4.4"
28+
"vue": "^3.5.10",
29+
"vue-router": "^4.4.5"
3030
},
3131
"devDependencies": {
32-
"@coderwyd/eslint-config": "^2.7.2",
32+
"@coderwyd/eslint-config": "^3.1.0",
3333
"@types/fs-extra": "^11.0.4",
3434
"@types/lodash-es": "^4.17.12",
35-
"@types/node": "^22.5.4",
36-
"@types/qs": "^6.9.15",
37-
"@unocss/eslint-plugin": "^0.62.3",
38-
"@vitejs/plugin-vue": "^5.1.3",
35+
"@types/node": "^22.7.4",
36+
"@types/qs": "^6.9.16",
37+
"@unocss/eslint-plugin": "^0.63.1",
38+
"@vitejs/plugin-vue": "^5.1.4",
3939
"@vitejs/plugin-vue-jsx": "^4.0.1",
4040
"cross-env": "^7.0.3",
4141
"cssnano": "^7.0.6",
4242
"dotenv": "^16.4.5",
43-
"eslint": "^9.10.0",
43+
"eslint": "^9.11.1",
4444
"fs-extra": "^11.2.0",
4545
"lint-staged": "^15.2.10",
4646
"picocolors": "^1.1.0",
47-
"sass": "^1.78.0",
47+
"sass": "^1.79.4",
4848
"simple-git-hooks": "^2.11.1",
49-
"terser": "^5.32.0",
50-
"typescript": "~5.5.4",
51-
"unocss": "^0.62.3",
49+
"terser": "^5.34.1",
50+
"typescript": "^5.6.2",
51+
"unocss": "^0.63.1",
5252
"unplugin-auto-import": "^0.18.3",
5353
"unplugin-icons": "^0.19.3",
5454
"unplugin-vue-components": "^0.27.4",
55-
"vite": "^5.4.4",
55+
"vite": "^5.4.8",
5656
"vite-plugin-compression": "^0.5.1",
5757
"vite-plugin-html": "^3.2.2",
58-
"vite-plugin-vue-devtools": "^7.4.5",
58+
"vite-plugin-vue-devtools": "^7.4.6",
5959
"vue-tsc": "^2.1.6"
6060
},
6161
"simple-git-hooks": {

0 commit comments

Comments
 (0)