File tree Expand file tree Collapse file tree 6 files changed +103
-80
lines changed
playground/src/components Expand file tree Collapse file tree 6 files changed +103
-80
lines changed Original file line number Diff line number Diff line change 44 <slot :id =" `${id}`" >{{ id }}</slot >
55 <slot name =" bottom" v-bind =" { foo: id }" >bottom</slot >
66 </div >
7+
8+ <div >Fragment</div >
79</template >
810
911<script setup lang="ts">
Original file line number Diff line number Diff line change 1+ id : v-tag has lang
2+ language : html
3+ rule :
4+ kind : attribute_value
5+ inside :
6+ kind : quoted_attribute_value
7+ inside :
8+ kind : attribute
9+ has :
10+ kind : attribute_name
11+ regex : lang
12+ inside :
13+ matches : is-script
14+ fix : |-
15+ tsx
16+
17+ ---
18+
19+ id : v-tag no lang
20+ language : html
21+ rule :
22+ kind : tag_name
23+ regex : script
24+ inside :
25+ matches : is-script
26+ not :
27+ has :
28+ kind : attribute
29+ has :
30+ kind : attribute_name
31+ regex : ^lang$
32+ fix : |-
33+ script lang="tsx"
Original file line number Diff line number Diff line change 88 any :
99 - precedes :
1010 matches : is-template
11- has :
12- kind : element
13- pattern : $A
11+ pattern : <template>$$$A</template>
1412 - follows :
1513 matches : is-template
16- has :
17- kind : element
18- pattern : $A
14+ pattern : <template>$$$A</template>
1915fix : |-
2016
2117 defineRender(() => (
22- $A
18+ $$$ A
2319 ))
2420 </script>
2521
2622 ---
2723
28- id : define-render remove template
29- language : html
30- rule :
31- matches : is-template
32- fix : |-
33-
34- ---
35-
36- id : define-render has lang
24+ id : define-render fragment
3725language : html
3826rule :
39- kind : attribute_value
27+ kind : end_tag
28+ regex : </script>
4029 inside :
41- kind : quoted_attribute_value
42- inside :
43- kind : attribute
44- pattern : $NAME
45- has :
46- kind : attribute_name
47- regex : lang
48- inside :
49- matches : is-script
30+ kind : script_element
31+ any :
32+ - precedes :
33+ matches : is-fragment
34+ pattern : <template>$$$A</template>
35+ - follows :
36+ matches : is-fragment
37+ pattern : <template>$$$A</template>
5038fix : |-
51- tsx
39+
40+ defineRender(() => (
41+ <>
42+ $$$A
43+ </>
44+ ))
45+ </script>
5246
5347 ---
5448
55- id : define-render no lang
49+ id : define-render remove template
5650language : html
5751rule :
58- kind : tag_name
59- regex : script
60- pattern : $NAME
61- inside :
62- matches : is-script
63- not :
64- has :
65- kind : attribute
66- has :
67- kind : attribute_name
68- regex : ^lang$
52+ any :
53+ - matches : is-template
54+ - matches : is-fragment
6955fix : |-
70- script lang="tsx"
Original file line number Diff line number Diff line change 88 any :
99 - precedes :
1010 matches : is-template
11- has :
12- kind : element
13- pattern : $A
11+ pattern : <template>$$$A</template>
1412 - follows :
1513 matches : is-template
16- has :
17- kind : element
18- pattern : $A
14+ pattern : <template>$$$A</template>
1915fix : |-
2016
2117 export default () => (
22- $A
18+ $$$ A
2319 )
2420 </script>
2521
2622 ---
2723
28- id : export-render remove template
29- language : html
30- rule :
31- matches : is-template
32- fix : |-
33-
34- ---
35-
36- id : export-render has lang
24+ id : export-render fragment
3725language : html
3826rule :
39- kind : attribute_value
27+ kind : end_tag
28+ regex : </script>
4029 inside :
41- kind : quoted_attribute_value
42- inside :
43- kind : attribute
44- pattern : $NAME
45- has :
46- kind : attribute_name
47- regex : lang
48- inside :
49- matches : is-script
30+ kind : script_element
31+ any :
32+ - precedes :
33+ matches : is-fragment
34+ pattern : <template>$$$A</template>
35+ - follows :
36+ matches : is-fragment
37+ pattern : <template>$$$A</template>
5038fix : |-
51- tsx
39+
40+ export default () => (
41+ <>
42+ $$$A
43+ </>
44+ )
45+ </script>
5246
5347 ---
5448
55- id : export-render no lang
49+ id : export-render remove template
5650language : html
5751rule :
58- kind : tag_name
59- regex : script
60- pattern : $NAME
61- inside :
62- matches : is-script
63- not :
64- has :
65- kind : attribute
66- has :
67- kind : attribute_name
68- regex : ^lang$
52+ any :
53+ - matches : is-template
54+ - matches : is-fragment
6955fix : |-
70- script lang="tsx"
Original file line number Diff line number Diff line change 1+ id : is-fragment
2+ language : html
3+ rule :
4+ kind : element
5+ regex : ^<template
6+ has :
7+ kind : element
8+ precedes :
9+ kind : element
10+ inside :
11+ kind : fragment
12+ has :
13+ kind : script_element
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ language: html
33rule :
44 kind : element
55 regex : ^<template
6+ not :
7+ has :
8+ kind : element
9+ precedes :
10+ kind : element
611 inside :
712 kind : fragment
813 has :
You can’t perform that action at this time.
0 commit comments