Skip to content

Commit f760e80

Browse files
committed
fix(jsx-directive): execute self-closing-tag first
1 parent 4d74c70 commit f760e80

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: playground/src/components/Comp.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<slot name="bottom" v-bind="{ foo: id }">bottom</slot>
66
</div>
77

8-
<img>
8+
<img :href="id">
99
<div>Fragment</div>
1010
</template>
1111

Diff for: src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ async function useTsx(cb = () => {}, action = 'clean') {
9696
}
9797

9898
if (['jsx-directive', 'setup-sfc'].includes(macro)) {
99+
await $`${sg} scan -c ${config}.yml -U --filter '^self-closing-tag' ${target}`
99100
await $`${sg} scan -c ${config}.yml -U --filter '^v-' ${target}`
100101
await $`${sg} scan -c ${config}.yml -U --filter '^${macro === 'setup-sfc' ? 'export-render' : render}' ${target}`
101102
await useTsx(async () => {

Diff for: src/rules/jsx-directive/v-tag.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: v-self-closing-tag
1+
id: self-closing-tag
22
language: html
33
rule:
44
kind: start_tag

0 commit comments

Comments
 (0)