Skip to content

Commit 6b75eb1

Browse files
committed
feat(jsx-directive): convert to jsx comment
1 parent 635affa commit 6b75eb1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/rules/jsx-directive/v-text.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@ transform:
1616
source: $B
1717
fix:
1818
$C
19+
20+
---
21+
22+
id: v-text to jsx comment
23+
language: html
24+
rule:
25+
kind: comment
26+
pattern: $A
27+
transform:
28+
B:
29+
replace:
30+
replace: <!--
31+
by: '{/*'
32+
source: $A
33+
C:
34+
replace:
35+
replace: -->
36+
by: '*/}'
37+
source: $B
38+
fix:
39+
$C

0 commit comments

Comments
 (0)