Skip to content

Commit 89a0cf8

Browse files
committed
feat: remove transform attributeName
1 parent 4ad9daa commit 89a0cf8

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

src/sg/rules/jsx-directive/pascal-case.yml

+1-29
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,4 @@ transform:
1515
source: $A
1616
toCase: pascalCase
1717
separatedBy: [dash]
18-
fix:
19-
$B
20-
21-
---
22-
23-
id: v-pascal-case for attributeName
24-
language: tsx
25-
rule:
26-
any:
27-
- kind: property_identifier
28-
pattern: $A
29-
regex: ^[^v]-
30-
- kind: identifier
31-
pattern: $A
32-
regex: '-'
33-
follows:
34-
kind: identifier
35-
stopBy: end
36-
inside:
37-
kind: jsx_namespace_name
38-
39-
transform:
40-
B:
41-
convert:
42-
source: $A
43-
toCase: camelCase
44-
separatedBy: [dash]
45-
fix:
46-
$B
18+
fix: $B

0 commit comments

Comments
 (0)