File tree 4 files changed +21
-9
lines changed
4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,6 @@ export default antfu(
18
18
'yaml/indent' : 'off' ,
19
19
} ,
20
20
} ,
21
+ ignores : [ '**/playground/**' ] ,
21
22
} ,
22
23
)
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ const compRef = shallowRef()
20
20
v-loading.fullscreen.lock =" true"
21
21
v-memo =" [select?.id === i.id]"
22
22
v-on =" on"
23
+ v-on:click =" alert"
24
+ @sub-mit.prevent
23
25
@click.once =" select = i"
24
26
@submit =" alert"
25
27
@update:model-value =" select.id = $event"
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export async function sg(target: string) {
65
65
66
66
if ( [ 'setup-sfc' , 'define-render' , 'export-render' ] . includes ( macro ) ) {
67
67
await $ `${ sg } scan -c ${ config } .yml -U --filter '^self-closing-tag' ${ target } `
68
+ await $ `${ sg } scan -c ${ config } .yml -U --filter '^dot-to-underline' ${ target } `
68
69
await $ `${ sg } scan -c ${ config } .yml -U --filter '^v-' ${ target } `
69
70
await $ `${ sg } scan -c ${ config } .yml -U --filter '^${ macro === 'setup-sfc' ? 'export-render' : macro } ' ${ target } `
70
71
await useTsx ( async ( ) => {
Original file line number Diff line number Diff line change 1
1
id : v-directive
2
2
language : html
3
3
rule :
4
- kind : attribute
4
+ kind : quoted_attribute_value
5
5
has :
6
+ kind : attribute_value
7
+ pattern : $V
8
+ follows :
6
9
kind : attribute_name
7
10
pattern : $NAME
8
- regex : ^v-
9
- precedes :
10
- kind : quoted_attribute_value
11
- has :
12
- kind : attribute_value
13
- pattern : $V
14
- stopBy : end
11
+ regex : ^v-|@
12
+ stopBy : end
13
+ fix : |-
14
+ {$V}
15
+
16
+ ---
17
+
18
+ id : dot-to-underline
19
+ language : html
20
+ rule :
21
+ kind : attribute_name
22
+ pattern : $NAME
15
23
transform :
16
24
K :
17
25
replace :
18
26
replace : \.
19
27
by : _
20
28
source : $NAME
21
29
fix : |-
22
- $K={$V}
30
+ $K
You can’t perform that action at this time.
0 commit comments