Skip to content

Commit 6a6c54a

Browse files
committed
chore: update deps, fix lint
1 parent 6224f33 commit 6a6c54a

30 files changed

+2342
-1850
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"recommendations": [
3-
"dbaeumer.vscode-eslint"
4-
]
2+
"recommendations": ["dbaeumer.vscode-eslint"]
53
}

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ import UnpluginVue2 from "unplugin-vue2/vite";
2525

2626
export default defineConfig({
2727
plugins: [
28-
UnpluginVue2({/* options */}),
28+
UnpluginVue2({
29+
/* options */
30+
}),
2931
],
3032
});
3133
```
@@ -41,7 +43,9 @@ import UnpluginVue2 from "unplugin-vue2/rollup";
4143

4244
export default {
4345
plugins: [
44-
UnpluginVue2({/* options */}),
46+
UnpluginVue2({
47+
/* options */
48+
}),
4549
// other plugins
4650
],
4751
};
@@ -58,7 +62,9 @@ export default {
5862
module.exports = {
5963
/* ... */
6064
plugins: [
61-
require("unplugin-vue2/webpack")({/* options */}),
65+
require("unplugin-vue2/webpack")({
66+
/* options */
67+
}),
6268
],
6369
};
6470
```
@@ -73,7 +79,9 @@ module.exports = {
7379
module.exports = {
7480
configureWebpack: {
7581
plugins: [
76-
require("unplugin-vue2/webpack")({/* options */}),
82+
require("unplugin-vue2/webpack")({
83+
/* options */
84+
}),
7785
],
7886
},
7987
};
@@ -88,19 +96,27 @@ module.exports = {
8896
// quasar.conf.js [Vite]
8997
module.exports = {
9098
vitePlugins: [
91-
["unplugin-vue2/vite", {/* options */}],
99+
[
100+
"unplugin-vue2/vite",
101+
{
102+
/* options */
103+
},
104+
],
92105
],
93106
};
94107
```
95108

96109
```ts
97110
// quasar.conf.js [Webpack]
98111
const UnpluginVue2Plugin = require("unplugin-vue2/webpack");
112+
99113
module.exports = {
100114
build: {
101115
chainWebpack(chain) {
102116
chain.plugin("unplugin-vue2").use(
103-
UnpluginVue2Plugin({/* options */}),
117+
UnpluginVue2Plugin({
118+
/* options */
119+
}),
104120
);
105121
},
106122
},

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unplugin-vue2",
33
"version": "0.1.1",
4-
"packageManager": "pnpm@7.32.3",
4+
"packageManager": "pnpm@8.4.0",
55
"author": "Ray <[email protected]> (@so1ve)",
66
"description": "",
77
"keywords": [
@@ -77,11 +77,11 @@
7777
},
7878
"scripts": {
7979
"build": "unbuild",
80-
"stub": "unbuild --stub",
8180
"lint": "eslint .",
8281
"lint:fix": "eslint . --fix",
8382
"prepublishOnly": "nr build",
8483
"release": "bumpp --commit --push --tag && pnpm publish",
84+
"stub": "unbuild --stub",
8585
"test": "vitest",
8686
"typecheck": "tsc --noEmit"
8787
},
@@ -94,7 +94,7 @@
9494
"devDependencies": {
9595
"@antfu/ni": "^0.21.3",
9696
"@babel/types": "^7.21.4",
97-
"@so1ve/eslint-config": "^0.69.1",
97+
"@so1ve/eslint-config": "^0.78.6",
9898
"@types/fs-extra": "^9.0.13",
9999
"@types/node": "^18.15.11",
100100
"bumpp": "^9.1.0",

playground/App.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<script setup lang="ts">
2-
import ScriptSetup from "./ScriptSetup.vue";
3-
import TestBlockSrcImport from "./src-import/TestBlockSrcImport.vue";
4-
import TestScopedCss from "./css/TestScopedCss.vue";
52
import TestCssModules from "./css/TestCssModules.vue";
3+
import TestCssVBind from "./css/TestCssVBind.vue";
64
import TestEmptyCss from "./css/TestEmptyCss.vue";
5+
import TestScopedCss from "./css/TestScopedCss.vue";
76
import TestCustomBlock from "./custom/TestCustomBlock.vue";
87
import TestHmr from "./hmr/TestHmr.vue";
8+
import ScriptSetup from "./ScriptSetup.vue";
9+
import TestBlockSrcImport from "./src-import/TestBlockSrcImport.vue";
910
import TestAssets from "./test-assets/TestAssets.vue";
10-
import TestES2020Features from "./TestES2020Features.vue";
1111
import TestComponent from "./test-component/TestComponent.vue";
12-
import TestCssVBind from "./css/TestCssVBind.vue";
12+
import TestES2020Features from "./TestES2020Features.vue";
1313
</script>
1414

1515
<template>

playground/TestES2020Features.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ export default Vue.extend({
3131
<h3>Nullish Coalescing and Optional Chaining</h3>
3232
<code>
3333
[nullish.a.b.c.d ?? 'not found']
34-
<br>
35-
//returns {{ nullish.a.d?.e ?? 'not found' }}
36-
<br>
37-
<br>
34+
<br />
35+
//returns {{ nullish.a.d?.e ?? "not found" }}
36+
<br />
37+
<br />
3838
[nullish.a.b.c ?? 'not found']
39-
<br>
40-
//returns {{ nullish.a.b.c ?? 'not found' }}
39+
<br />
40+
//returns {{ nullish.a.b.c ?? "not found" }}
4141
</code>
4242
<h3>Spread Operator</h3>
4343
<code>
4444
["Test", 1, ...('abc').split('')]
45-
<br>
46-
//returns {{ ['Test', 1, ...'abc'.split('')] }}
45+
<br />
46+
//returns {{ ["Test", 1, ..."abc".split("")] }}
4747
</code>
4848
</div>
4949
</template>

playground/css/TestCssVBind.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ const color = ref("red");
77
<template>
88
<div>
99
<h2>CSS v-bind</h2>
10-
<span
11-
class="css-v-bind"
12-
@click="color = color === 'red' ? 'green' : 'red'"
13-
>This should be {{ color }}</span>
10+
<span class="css-v-bind" @click="color = color === 'red' ? 'green' : 'red'">
11+
This should be {{ color }}
12+
</span>
1413
</div>
1514
</template>
1615

playground/css/TestEmptyCss.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<template>
22
<div>
33
<h2>Empty CSS</h2>
4-
<div>
5-
&lt;style&gt;: empty style
6-
</div>
4+
<div>&lt;style&gt;: empty style</div>
75
</div>
86
</template>
97

playground/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8">
5-
<link rel="icon" href="/favicon.ico">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Vite App</title>
88
</head>
99
<body>

playground/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import Vue from "vue";
33
import App from "./App.vue";
44

55
new Vue({
6-
render: h => h(App),
6+
render: (h) => h(App),
77
}).$mount("#app");

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "1.0.0",
55
"description": "",
66
"scripts": {
7-
"dev": "vite",
87
"build": "vite build",
8+
"dev": "vite",
99
"serve": "vite preview"
1010
}
1111
}

0 commit comments

Comments
 (0)