Skip to content

Commit ecf1a68

Browse files
committed
chore: update deps
1 parent e0d37b0 commit ecf1a68

34 files changed

+8350
-7427
lines changed

.eslintignore

-3
This file was deleted.

.eslintrc.json

-6
This file was deleted.

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

1818
- name: Set node
19-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v4
2020
with:
2121
node-version: lts/*
2222

@@ -36,15 +36,15 @@ jobs:
3636

3737
strategy:
3838
matrix:
39-
node: [16.x, 18.x]
39+
node: [lts/*]
4040
os: [ubuntu-latest, windows-latest, macos-latest]
4141
fail-fast: false
4242

4343
steps:
44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v4
4545

4646
- name: Set node version to ${{ matrix.node }}
47-
uses: actions/setup-node@v2
47+
uses: actions/setup-node@v4
4848
with:
4949
node-version: ${{ matrix.node }}
5050

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

18-
- uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
1919
with:
2020
node-version: lts/*
2121

.vscode/settings.json

+43-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3-
"prettier.enable": false
3+
4+
// Enable the ESlint flat config support
5+
"eslint.experimental.useFlatConfig": true,
6+
7+
// Disable the default formatter, use eslint instead
8+
"prettier.enable": false,
9+
"editor.formatOnSave": false,
10+
11+
// Auto fix
12+
"editor.codeActionsOnSave": {
13+
"source.fixAll.eslint": "explicit",
14+
"source.organizeImports": "never"
15+
},
16+
17+
// Silent the stylistic rules in you IDE, but still auto fix them
18+
"eslint.rules.customizations": [
19+
{ "rule": "style/*", "severity": "off" },
20+
{ "rule": "format/*", "severity": "off" },
21+
{ "rule": "*-indent", "severity": "off" },
22+
{ "rule": "*-spacing", "severity": "off" },
23+
{ "rule": "*-spaces", "severity": "off" },
24+
{ "rule": "*-order", "severity": "off" },
25+
{ "rule": "*-dangle", "severity": "off" },
26+
{ "rule": "*-newline", "severity": "off" },
27+
{ "rule": "*quotes", "severity": "off" },
28+
{ "rule": "*semi", "severity": "off" }
29+
],
30+
31+
// Enable eslint for all supported languages
32+
"eslint.validate": [
33+
"javascript",
34+
"javascriptreact",
35+
"typescript",
36+
"typescriptreact",
37+
"vue",
38+
"html",
39+
"markdown",
40+
"json",
41+
"jsonc",
42+
"yaml",
43+
"toml",
44+
"astro"
45+
]
446
}

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export default {
6565

6666
<br></details>
6767

68-
6968
<details>
7069
<summary>Webpack</summary><br>
7170

@@ -117,6 +116,7 @@ module.exports = {
117116
```
118117

119118
You can also rename the Vue configuration file to `vue.config.mjs` and use static import syntax (you should use latest `@vue/cli-service ^5.0.8`):
119+
120120
```ts
121121
// vue.config.mjs
122122
import Components from 'unplugin-vue-components/webpack'
@@ -166,9 +166,9 @@ It will automatically turn this
166166
</template>
167167

168168
<script>
169-
export default {
170-
name: 'App'
171-
}
169+
export default {
170+
name: 'App',
171+
}
172172
</script>
173173
```
174174

@@ -182,16 +182,17 @@ into this
182182
</template>
183183

184184
<script>
185-
import HelloWorld from './src/components/HelloWorld.vue'
185+
import HelloWorld from './src/components/HelloWorld.vue'
186186
187-
export default {
188-
name: 'App',
189-
components: {
190-
HelloWorld
187+
export default {
188+
name: 'App',
189+
components: {
190+
HelloWorld,
191+
},
191192
}
192-
}
193193
</script>
194194
```
195+
195196
> **Note**
196197
> By default this plugin will import components in the `src/components` path. You can customize it using the `dirs` option.
197198

eslint.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu({
4+
formatters: true,
5+
vue: true,
6+
})

examples/vite-vue2/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Vite App</title>
7-
</head>
8-
<body>
9-
<div id="app"></div>
10-
<script type="module" src="/src/main.ts"></script>
11-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Vite App</title>
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
<script type="module" src="/src/main.ts"></script>
11+
</body>
1212
</html>

examples/vite-vue2/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2+
"name": "example-vite-vue2",
23
"private": true,
34
"scripts": {
45
"build": "cross-env DEBUG=unplugin-vue-components:* vite build",
56
"dev": "cross-env DEBUG=unplugin-vue-components:* vite"
67
},
78
"dependencies": {
8-
"vue": "^2.7.14"
9+
"vue": "^2.7.16"
910
},
1011
"devDependencies": {
11-
"@vitejs/plugin-vue2": "^2.2.0",
12+
"@vitejs/plugin-vue2": "^2.3.1",
1213
"cross-env": "^7.0.3",
1314
"unplugin-vue-components": "workspace:*",
14-
"vite": "^4.4.9"
15+
"vite": "^5.2.10"
1516
}
1617
}

examples/vite-vue3/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Vite App</title>
7-
</head>
8-
<body>
9-
<div id="app"></div>
10-
<script type="module" src="/src/main.ts"></script>
11-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Vite App</title>
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
<script type="module" src="/src/main.ts"></script>
11+
</body>
1212
</html>

examples/vite-vue3/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
"preview": "cross-env DEBUG=unplugin-vue-components:* vite preview"
99
},
1010
"dependencies": {
11-
"vant": "^4.6.8"
11+
"vant": "^4.8.11"
1212
},
1313
"devDependencies": {
14-
"@iconify/json": "^2.2.115",
15-
"@vitejs/plugin-vue": "^4.3.4",
16-
"@vue/compiler-sfc": "^3.3.4",
14+
"@iconify/json": "^2.2.205",
15+
"@vitejs/plugin-vue": "^5.0.4",
16+
"@vue/compiler-sfc": "^3.4.26",
1717
"cross-env": "^7.0.3",
1818
"has-pkg": "^0.0.1",
19-
"typescript": "^5.2.2",
20-
"unplugin-icons": "^0.17.0",
19+
"typescript": "^5.4.5",
20+
"unplugin-icons": "^0.18.5",
2121
"unplugin-vue-components": "workspace:*",
22-
"vite": "^4.4.9",
23-
"vite-plugin-inspect": "^0.7.38",
24-
"vite-plugin-vue-markdown": "^0.23.8",
25-
"vue-router": "^4.2.4"
22+
"unplugin-vue-markdown": "^0.26.2",
23+
"vite": "^5.2.10",
24+
"vite-plugin-inspect": "^0.8.4",
25+
"vue-router": "^4.3.2"
2626
}
2727
}

examples/vite-vue3/src/shims-vue.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
declare module '*.vue' {
22
import type { defineComponent } from 'vue'
3+
34
const Component: ReturnType<typeof defineComponent>
45
export default Component
56
}
67

78
declare module '*.md' {
89
import type { defineComponent } from 'vue'
10+
911
const Component: ReturnType<typeof defineComponent>
1012
export default Component
1113
}

examples/vue-cli-vue3/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11-
"core-js": "^3.32.2",
12-
"vue": "^3.2.45"
11+
"core-js": "^3.37.0",
12+
"vue": "^3.4.26"
1313
},
1414
"devDependencies": {
15-
"@babel/core": "^7.22.17",
15+
"@babel/core": "^7.24.5",
1616
"@vue/cli-plugin-babel": "~5.0.8",
1717
"@vue/cli-service": "~5.0.8",
1818
"unplugin-vue-components": "workspace:*"

examples/vue-cli-vue3/public/index.html

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="">
33
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
77
<title><%= htmlWebpackPlugin.options.title %></title>
88
</head>
99
<body>
1010
<noscript>
11-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
11+
<strong
12+
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
13+
properly without JavaScript enabled. Please enable it to
14+
continue.</strong
15+
>
1216
</noscript>
1317
<div id="app"></div>
1418
<!-- built files will be auto injected -->

examples/vue-cli/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
},
99
"dependencies": {
1010
"@vue/composition-api": "^1.7.2",
11-
"core-js": "^3.32.2",
12-
"vue": "^3.2.45"
11+
"core-js": "^3.37.0",
12+
"vue": "^3.4.26"
1313
},
1414
"devDependencies": {
1515
"@vue/cli-plugin-babel": "^5.0.8",
1616
"@vue/cli-plugin-typescript": "^5.0.8",
1717
"@vue/cli-service": "^5.0.8",
18-
"typescript": "^5.2.2",
19-
"unplugin-icons": "^0.17.0",
18+
"typescript": "^5.4.5",
19+
"unplugin-icons": "^0.18.5",
2020
"unplugin-vue-components": "workspace:*",
2121
"unplugin-vue2-script-setup": "^0.11.4"
2222
}

examples/vue-cli/public/index.html

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="">
33
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
77
<title><%= htmlWebpackPlugin.options.title %></title>
88
</head>
99
<body>
1010
<noscript>
11-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
11+
<strong
12+
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
13+
properly without JavaScript enabled. Please enable it to
14+
continue.</strong
15+
>
1216
</noscript>
1317
<div id="app"></div>
1418
<!-- built files will be auto injected -->

0 commit comments

Comments
 (0)