Skip to content

Commit 0362ad0

Browse files
committed
feat!: rename vue.vueVersion to vue.version
1 parent ced4886 commit 0362ad0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ The default Vue version is 3, if you're using Vue 2:
365365
import antfu from '@antfu/eslint-config'
366366

367367
export default antfu({
368-
vue: { vueVersion: 2 },
368+
vue: { version: 2 },
369369
})
370370
```
371371

src/configs/vue.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function vue(
1010
files = [GLOB_VUE],
1111
overrides = {},
1212
stylistic = true,
13-
vueVersion = 3,
13+
version = 3,
1414
} = options
1515

1616
const sfcBlocks = options.sfcBlocks === true
@@ -90,7 +90,7 @@ export async function vue(
9090
rules: {
9191
...pluginVue.configs.base.rules as any,
9292

93-
...vueVersion === 2
93+
...version === 2
9494
? {
9595
...pluginVue.configs.essential.rules as any,
9696
...pluginVue.configs['strongly-recommended'].rules as any,

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface OptionsVue extends OptionsOverrides {
5151
*
5252
* @default 3
5353
*/
54-
vueVersion?: 2 | 3
54+
version?: 2 | 3
5555
}
5656

5757
export type OptionsTypescript =

0 commit comments

Comments
 (0)