Skip to content

Commit ecf1a68

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

34 files changed

+8350
-7427
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 43 additions & 1 deletion
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

Lines changed: 11 additions & 10 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 10 additions & 10 deletions
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

Lines changed: 4 additions & 3 deletions
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

Lines changed: 10 additions & 10 deletions
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>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy