We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e41f3e commit 635affaCopy full SHA for 635affa
playground/src/App.vue
@@ -25,7 +25,7 @@ const select = $ref<{ id: number }>(list[0])
25
<div>{{ id }}</div>
26
</template>
27
<template #bottom="{ foo }">
28
- <div>{{ foo }}</div>
+ <div>{{ `${foo}` }}</div>
29
30
</Comp>
31
src/rules/jsx-directive/v-text.yml
@@ -1,12 +1,18 @@
1
id: v-text
2
-language: tsx
+language: html
3
rule:
4
- kind: jsx_expression
5
- has:
6
- kind: object
7
- pattern: $A
8
- not:
9
- inside:
10
- kind: jsx_attribute
+ kind: text
+ pattern: $A
+transform:
+ B:
+ replace:
+ replace: \{\{
+ by: '{'
11
+ source: $A
12
+ C:
13
14
+ replace: \}\}
15
+ by: '}'
16
+ source: $B
17
fix:
- $A
18
+ $C
0 commit comments