Skip to content

Commit d6fea9f

Browse files
committed
feat(sg): add v-slot no value support
1 parent 2f51837 commit d6fea9f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

+18
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,21 @@ transform:
1919
startChar: 1
2020
fix:
2121
v-slot:$K={$V}
22+
23+
---
24+
25+
id: v-slot shorthand no value
26+
language: html
27+
rule:
28+
kind: attribute
29+
has:
30+
kind: attribute_name
31+
regex: ^#
32+
pattern: $NAME
33+
transform:
34+
K:
35+
substring:
36+
source: $NAME
37+
startChar: 1
38+
fix:
39+
v-slot:$K

0 commit comments

Comments
 (0)