Skip to content

Commit 59accb1

Browse files
authored
feat: update vue/block-order rule
Distinguish between vue2 and vue3.
1 parent ac7d000 commit 59accb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/configs/vue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function vue(
6868
'vue/block-order': [
6969
'error',
7070
{
71-
order: ['script', 'template', 'style'],
71+
order: isVue3 ? ['script', 'template', 'style'] : ['template', 'script', 'style'],
7272
},
7373
],
7474
'vue/component-name-in-template-casing': ['error', 'PascalCase'],

0 commit comments

Comments
 (0)