Skip to content

Commit 459a726

Browse files
committed
feat: upgrade vue and deps
1 parent 61409d6 commit 459a726

File tree

15 files changed

+1015
-467
lines changed

15 files changed

+1015
-467
lines changed

fixtures/input/vue-ts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import { ref } from 'vue';
1313
1414
const greeting = ref('Hello, Vue 3!');
15-
let counter = ref<number | string>(0);
15+
let counter = ref<number | 1>(0);
1616
1717
// Define a function
1818
const incrementCounter = () => {

fixtures/input/vue.vue

+3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ import { ref } from '@vue/reactivity';
1313
1414
const greeting = ref('Hello, Vue 3!' + 1);
1515
let counter = ref(0)
16+
let doubled = computed(() => counter.value * 2);
1617
1718
// Define a function
1819
const incrementCounter = () => {
1920
counter.value++;
2021
};
22+
23+
let _zero = doubled + counter
2124
</script>

fixtures/output/all/vue-ts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ref } from 'vue'
44
55
const greeting = ref('Hello, Vue 3!')
6-
const counter = ref<number | string>(0)
6+
const counter = ref<number | 1>(0)
77
88
// Define a function
99
function incrementCounter() {

fixtures/output/all/vue.vue

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import { ref } from 'vue'
44
55
const greeting = ref(`Hello, Vue 3!${1}`)
66
const counter = ref(0)
7+
const doubled = computed(() => counter.value * 2)
78
89
// Define a function
910
function incrementCounter() {
1011
counter.value++
1112
}
13+
14+
const _zero = doubled.value + counter.value
1215
</script>
1316

1417
<template>

fixtures/output/no-style/vue-ts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ref } from 'vue';
44
55
const greeting = ref('Hello, Vue 3!');
6-
const counter = ref<number | string>(0);
6+
const counter = ref<number | 1>(0);
77
88
// Define a function
99
const incrementCounter = () => {

fixtures/output/no-style/vue.vue

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import { ref } from 'vue';
44
55
const greeting = ref(`Hello, Vue 3!${ 1}`);
66
const counter = ref(0)
7+
const doubled = computed(() => counter.value * 2);
78
89
// Define a function
910
const incrementCounter = () => {
1011
counter.value++;
1112
};
13+
14+
const _zero = doubled.value + counter.value
1215
</script>
1316

1417
<template>

fixtures/output/tab-double-quotes/vue-ts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ref } from "vue"
44
55
const greeting = ref("Hello, Vue 3!")
6-
const counter = ref<number | string>(0)
6+
const counter = ref<number | 1>(0)
77
88
// Define a function
99
function incrementCounter() {

fixtures/output/tab-double-quotes/vue.vue

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import { ref } from "vue"
44
55
const greeting = ref(`Hello, Vue 3!${1}`)
66
const counter = ref(0)
7+
const doubled = computed(() => counter.value * 2)
78
89
// Define a function
910
function incrementCounter() {
1011
counter.value++
1112
}
13+
14+
const _zero = doubled.value + counter.value
1215
</script>
1316

1417
<template>

fixtures/output/ts-override/vue-ts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ref } from 'vue'
44
55
const greeting = ref('Hello, Vue 3!')
6-
const counter = ref<number | string>(0)
6+
const counter = ref<number | 1>(0)
77
88
// Define a function
99
function incrementCounter() {

fixtures/output/ts-override/vue.vue

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import { ref } from 'vue'
44
55
const greeting = ref(`Hello, Vue 3!${1}`)
66
const counter = ref(0)
7+
const doubled = computed(() => counter.value * 2)
78
89
// Define a function
910
function incrementCounter() {
1011
counter.value++
1112
}
13+
14+
const _zero = doubled.value + counter.value
1215
</script>
1316

1417
<template>

fixtures/output/with-formatters/vue-ts.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ref } from 'vue'
44
55
const greeting = ref('Hello, Vue 3!')
6-
const counter = ref<number | string>(0)
6+
const counter = ref<number | 1>(0)
77
88
// Define a function
99
function incrementCounter() {

fixtures/output/with-formatters/vue.vue

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import { ref } from 'vue'
44
55
const greeting = ref(`Hello, Vue 3!${1}`)
66
const counter = ref(0)
7+
const doubled = computed(() => counter.value * 2)
78
89
// Define a function
910
function incrementCounter() {
1011
counter.value++
1112
}
13+
14+
const _zero = doubled.value + counter.value
1215
</script>
1316

1417
<template>

package.json

+36-36
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@kirklin/eslint-config",
33
"type": "module",
44
"version": "2.1.0",
5-
"packageManager": "[email protected].1",
5+
"packageManager": "[email protected].5",
66
"description": "Kirk Lin's ESLint config",
77
"author": "Kirk Lin (https://github.com/kirklin/)",
88
"license": "MIT",
@@ -89,31 +89,31 @@
8989
"dependencies": {
9090
"@antfu/eslint-define-config": "1.23.0-2",
9191
"@antfu/install-pkg": "^0.3.1",
92-
"@eslint-types/jsdoc": "48.0.4",
93-
"@eslint-types/typescript-eslint": "^6.19.1",
94-
"@eslint-types/unicorn": "^50.0.1",
95-
"@stylistic/eslint-plugin": "^1.6.0",
96-
"@typescript-eslint/eslint-plugin": "^6.21.0",
97-
"@typescript-eslint/parser": "^6.21.0",
98-
"eslint-config-flat-gitignore": "^0.1.2",
92+
"@eslint-types/jsdoc": "48.2.1",
93+
"@eslint-types/typescript-eslint": "^7.2.0",
94+
"@eslint-types/unicorn": "^51.0.1",
95+
"@stylistic/eslint-plugin": "^1.7.0",
96+
"@typescript-eslint/eslint-plugin": "^7.3.1",
97+
"@typescript-eslint/parser": "^7.3.1",
98+
"eslint-config-flat-gitignore": "^0.1.3",
9999
"eslint-merge-processors": "^0.1.0",
100100
"eslint-plugin-eslint-comments": "^3.2.0",
101101
"eslint-plugin-i": "^2.29.1",
102-
"eslint-plugin-jsdoc": "^48.0.5",
103-
"eslint-plugin-jsonc": "^2.13.0",
102+
"eslint-plugin-jsdoc": "^48.2.1",
103+
"eslint-plugin-jsonc": "^2.14.1",
104104
"eslint-plugin-kirklin": "^1.1.0",
105-
"eslint-plugin-markdown": "^3.0.1",
105+
"eslint-plugin-markdown": "^4.0.1",
106106
"eslint-plugin-n": "^16.6.2",
107107
"eslint-plugin-no-only-tests": "^3.1.0",
108-
"eslint-plugin-perfectionist": "^2.5.0",
109-
"eslint-plugin-toml": "^0.9.2",
110-
"eslint-plugin-unicorn": "^50.0.1",
111-
"eslint-plugin-unused-imports": "^3.0.0",
112-
"eslint-plugin-vitest": "^0.3.21",
113-
"eslint-plugin-vue": "^9.21.1",
114-
"eslint-plugin-yml": "^1.12.2",
108+
"eslint-plugin-perfectionist": "^2.7.0",
109+
"eslint-plugin-toml": "^0.10.0",
110+
"eslint-plugin-unicorn": "^51.0.1",
111+
"eslint-plugin-unused-imports": "^3.1.0",
112+
"eslint-plugin-vitest": "^0.3.26",
113+
"eslint-plugin-vue": "^9.23.0",
114+
"eslint-plugin-yml": "^1.13.1",
115115
"eslint-processor-vue-blocks": "^0.1.1",
116-
"globals": "^13.24.0",
116+
"globals": "^14.0.0",
117117
"jsonc-eslint-parser": "^2.4.0",
118118
"local-pkg": "^0.5.0",
119119
"parse-gitignore": "^2.0.0",
@@ -128,39 +128,39 @@
128128
"@antfu/eslint-plugin-prettier": "5.0.1-1",
129129
"@antfu/ni": "^0.21.12",
130130
"@kirklin/eslint-config": "workspace:*",
131-
"@stylistic/eslint-plugin-migrate": "^1.6.0",
132-
"@types/eslint": "^8.56.2",
131+
"@stylistic/eslint-plugin-migrate": "^1.7.0",
132+
"@types/eslint": "^8.56.6",
133133
"@types/fs-extra": "^11.0.4",
134-
"@types/node": "^20.11.16",
134+
"@types/node": "^20.11.30",
135135
"@types/prompts": "^2.4.9",
136136
"@types/yargs": "^17.0.32",
137-
"@unocss/eslint-plugin": "^0.58.5",
137+
"@unocss/eslint-plugin": "^0.58.6",
138138
"astro-eslint-parser": "^0.16.3",
139-
"bumpp": "^9.3.0",
140-
"eslint": "npm:eslint-ts-patch@8.56.0-0",
139+
"bumpp": "^9.4.0",
140+
"eslint": "npm:eslint-ts-patch@8.57.0-0",
141141
"eslint-flat-config-viewer": "^0.1.11",
142-
"eslint-plugin-astro": "^0.31.4",
142+
"eslint-plugin-astro": "^0.32.0",
143143
"eslint-plugin-format": "^0.1.0",
144-
"eslint-plugin-react": "^7.33.2",
144+
"eslint-plugin-react": "^7.34.1",
145145
"eslint-plugin-react-hooks": "^4.6.0",
146-
"eslint-plugin-react-refresh": "^0.4.5",
146+
"eslint-plugin-react-refresh": "^0.4.6",
147147
"eslint-plugin-svelte": "^2.35.1",
148-
"eslint-ts-patch": "8.56.0-0",
149-
"esno": "^4.0.0",
148+
"eslint-ts-patch": "8.57.0-0",
149+
"esno": "^4.7.0",
150150
"execa": "^8.0.1",
151151
"fast-glob": "^3.3.2",
152152
"fs-extra": "^11.2.0",
153153
"lint-staged": "^15.2.2",
154154
"prettier-plugin-astro": "^0.13.0",
155155
"prettier-plugin-slidev": "^1.0.5",
156156
"rimraf": "^5.0.5",
157-
"simple-git-hooks": "^2.9.0",
158-
"svelte": "^4.2.10",
157+
"simple-git-hooks": "^2.11.0",
158+
"svelte": "^4.2.12",
159159
"svelte-eslint-parser": "^0.33.1",
160-
"tsup": "^8.0.1",
161-
"typescript": "^5.3.3",
162-
"vitest": "^1.2.2",
163-
"vue": "^3.4.15"
160+
"tsup": "^8.0.2",
161+
"typescript": "^5.4.2",
162+
"vitest": "^1.4.0",
163+
"vue": "^3.4.21"
164164
},
165165
"simple-git-hooks": {
166166
"pre-commit": "pnpm lint-staged"

0 commit comments

Comments
 (0)