Skip to content

Commit bc294be

Browse files
committed
chore: apply linter
1 parent 443b39a commit bc294be

28 files changed

+925
-654
lines changed

examples/vite-vue2/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"dev": "cross-env DEBUG=unplugin-vue-components:* vite"
66
},
77
"dependencies": {
8-
"vue": "^2.6.14",
8+
"vue": "^3.2.31",
99
"vue-template-compiler": "^2.6.14"
1010
},
1111
"devDependencies": {
1212
"cross-env": "^7.0.3",
1313
"unplugin-vue-components": "workspace:*",
14-
"vite": "^2.8.6",
14+
"vite": "^2.9.1",
1515
"vite-plugin-vue2": "^1.9.3"
1616
}
1717
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component A: {{ msg }}</h3>
3-
</template>
4-
51
<script>
62
export default {
73
props: {
84
msg: String,
95
},
106
}
117
</script>
8+
9+
<template>
10+
<h3>Component A: {{ msg }}</h3>
11+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component B: {{ msg }}</h3>
3-
</template>
4-
51
<script>
62
export default {
73
props: {
84
msg: String,
95
},
106
}
117
</script>
8+
9+
<template>
10+
<h3>Component B: {{ msg }}</h3>
11+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<template>
2-
<h3>Component D: <component-b msg="wrapper" /></h3>
3-
</template>
4-
51
<script>
62
export default {}
73
</script>
4+
5+
<template>
6+
<h3>Component D: <component-b msg="wrapper" /></h3>
7+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component C: {{ msg }}</h3>
3-
</template>
4-
51
<script>
62
export default {
73
props: {
84
msg: String,
95
},
106
}
117
</script>
8+
9+
<template>
10+
<h3>Component C: {{ msg }}</h3>
11+
</template>

examples/vite-vue3/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
"build": "cross-env DEBUG=unplugin-vue-components:* vite build"
88
},
99
"dependencies": {
10-
"vant": "^3.4.5"
10+
"vant": "^3.4.7"
1111
},
1212
"devDependencies": {
13-
"@iconify/json": "^2.1.14",
14-
"@vitejs/plugin-vue": "^2.2.4",
13+
"@iconify/json": "^2.1.23",
14+
"@vitejs/plugin-vue": "^2.3.1",
1515
"@vue/compiler-sfc": "^3.2.31",
1616
"cross-env": "^7.0.3",
1717
"has-pkg": "^0.0.1",
18-
"typescript": "^4.6.2",
19-
"unplugin-icons": "^0.13.3",
18+
"typescript": "^4.6.3",
19+
"unplugin-icons": "^0.14.1",
2020
"unplugin-vue-components": "workspace:*",
21-
"vite": "^2.8.6",
21+
"vite": "^2.9.1",
2222
"vite-plugin-inspect": "^0.4.3",
23-
"vite-plugin-md": "^0.11.9",
23+
"vite-plugin-md": "^0.12.4",
2424
"vite-plugin-vue-svg": "^0.1.0"
2525
}
2626
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<template>
2-
<h3>Component A: {{ msg }}</h3>
3-
</template>
4-
51
<script setup lang='ts'>
62
const props = defineProps({
73
msg: String,
84
})
95
</script>
6+
7+
<template>
8+
<h3>Component A: {{ msg }}</h3>
9+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component B: {{ msg }}</h3>
3-
</template>
4-
51
<script setup='props' lang='ts'>
62
import { defineProps } from 'vue'
73
84
const props = defineProps({
95
msg: String,
106
})
117
</script>
8+
9+
<template>
10+
<h3>Component B: {{ msg }}</h3>
11+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<template>
2-
<h3>Component D: <component-b msg="wrapper" /></h3>
3-
</template>
4-
51
<script lang='ts'>
62
export default {}
73
</script>
4+
5+
<template>
6+
<h3>Component D: <component-b msg="wrapper" /></h3>
7+
</template>

examples/vite-vue3/src/components/Recursive.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
<template>
2-
<div>
3-
<div>{{ data.label }}</div>
4-
<div class="child">
5-
<recursive v-for="(item, idx) in data.children" :key="idx" :data="item" />
6-
</div>
7-
</div>
8-
</template>
9-
101
<script lang="ts">
112
export default {
123
name: 'Recursive',
@@ -16,6 +7,15 @@ export default {
167
}
178
</script>
189

10+
<template>
11+
<div>
12+
<div>{{ data.label }}</div>
13+
<div class="child">
14+
<recursive v-for="(item, idx) in data.children" :key="idx" :data="item" />
15+
</div>
16+
</div>
17+
</template>
18+
1919
<style>
2020
.child {
2121
margin-left: 2rem;
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<template>
2-
<h3>Index Component: <code>book/index.vue</code></h3>
3-
</template>
4-
51
<script>
62
export default {
73
name: 'Book',
84
}
95
</script>
6+
7+
<template>
8+
<h3>Index Component: <code>book/index.vue</code></h3>
9+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component C: {{ msg }}</h3>
3-
</template>
4-
51
<script setup lang='ts'>
62
import { defineProps } from 'vue'
73
84
const props = defineProps({
95
msg: String,
106
})
117
</script>
8+
9+
<template>
10+
<h3>Component C: {{ msg }}</h3>
11+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<template>
2-
<h3>Namespaced Component: <code>ui/button.vue</code></h3>
3-
</template>
4-
51
<script>
62
export default {
73
name: 'UiButton',
84
}
95
</script>
6+
7+
<template>
8+
<h3>Namespaced Component: <code>ui/button.vue</code></h3>
9+
</template>

examples/vue-cli/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"vue": "^3.2.31"
1313
},
1414
"devDependencies": {
15-
"@vue/cli-plugin-babel": "^5.0.1",
16-
"@vue/cli-plugin-typescript": "^5.0.1",
17-
"@vue/cli-service": "^5.0.1",
18-
"typescript": "^4.6.2",
19-
"unplugin-icons": "^0.13.3",
15+
"@vue/cli-plugin-babel": "^5.0.4",
16+
"@vue/cli-plugin-typescript": "^5.0.4",
17+
"@vue/cli-service": "^5.0.4",
18+
"typescript": "^4.6.3",
19+
"unplugin-icons": "^0.14.1",
2020
"unplugin-vue-components": "workspace:*",
21-
"unplugin-vue2-script-setup": "^0.10.0"
21+
"unplugin-vue2-script-setup": "^0.10.2"
2222
}
2323
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component A: {{ msg }}</h3>
3-
</template>
4-
51
<script>
62
export default {
73
props: {
84
msg: String,
95
},
106
}
117
</script>
8+
9+
<template>
10+
<h3>Component A: {{ msg }}</h3>
11+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component B: {{ msg }}</h3>
3-
</template>
4-
51
<script>
62
export default {
73
props: {
84
msg: String,
95
},
106
}
117
</script>
8+
9+
<template>
10+
<h3>Component B: {{ msg }}</h3>
11+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<template>
2-
<h3>Component D: <component-b msg="wrapper" /></h3>
3-
</template>
4-
51
<script>
62
export default {}
73
</script>
4+
5+
<template>
6+
<h3>Component D: <component-b msg="wrapper" /></h3>
7+
</template>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<template>
2-
<h3>Component C: {{ msg }}</h3>
3-
</template>
4-
51
<script>
62
export default {
73
props: {
84
msg: String,
95
},
106
}
117
</script>
8+
9+
<template>
10+
<h3>Component C: {{ msg }}</h3>
11+
</template>

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -88,35 +88,35 @@
8888
"@antfu/utils": "^0.5.0",
8989
"@rollup/pluginutils": "^4.2.0",
9090
"chokidar": "^3.5.3",
91-
"debug": "^4.3.3",
91+
"debug": "^4.3.4",
9292
"fast-glob": "^3.2.11",
9393
"local-pkg": "^0.4.1",
9494
"magic-string": "^0.26.1",
9595
"minimatch": "^5.0.1",
9696
"resolve": "^1.22.0",
97-
"unplugin": "^0.4.0"
97+
"unplugin": "^0.6.1"
9898
},
9999
"devDependencies": {
100-
"@antfu/eslint-config": "^0.18.8",
101-
"@babel/parser": "^7.17.3",
100+
"@antfu/eslint-config": "^0.19.4",
101+
"@babel/parser": "^7.17.8",
102102
"@babel/traverse": "^7.17.3",
103103
"@babel/types": "^7.17.0",
104104
"@types/debug": "^4.1.7",
105105
"@types/minimatch": "^3.0.5",
106-
"@types/node": "^17.0.21",
106+
"@types/node": "^17.0.23",
107107
"@types/resolve": "^1.20.1",
108-
"@typescript-eslint/eslint-plugin": "^5.14.0",
108+
"@typescript-eslint/eslint-plugin": "^5.17.0",
109109
"bumpp": "^7.1.1",
110110
"compare-versions": "^4.1.3",
111-
"element-plus": "^2.0.5",
112-
"eslint": "^8.10.0",
111+
"element-plus": "^2.1.8",
112+
"eslint": "^8.12.0",
113113
"esno": "^0.14.1",
114114
"pathe": "^0.2.0",
115-
"rollup": "^2.70.0",
116-
"tsup": "5.12.1",
117-
"typescript": "^4.6.2",
118-
"vite": "^2.8.6",
119-
"vitest": "^0.6.0",
115+
"rollup": "^2.70.1",
116+
"tsup": "5.12.4",
117+
"typescript": "^4.6.3",
118+
"vite": "^2.9.1",
119+
"vitest": "^0.8.4",
120120
"vue": "3.2.31"
121121
},
122122
"engines": {

0 commit comments

Comments
 (0)