Skip to content

Commit

Permalink
feat: remove transform attributeName
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Dec 23, 2023
1 parent 4ad9daa commit 89a0cf8
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions src/sg/rules/jsx-directive/pascal-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,4 @@ transform:
source: $A
toCase: pascalCase
separatedBy: [dash]
fix:
$B

---

id: v-pascal-case for attributeName
language: tsx
rule:
any:
- kind: property_identifier
pattern: $A
regex: ^[^v]-
- kind: identifier
pattern: $A
regex: '-'
follows:
kind: identifier
stopBy: end
inside:
kind: jsx_namespace_name

transform:
B:
convert:
source: $A
toCase: camelCase
separatedBy: [dash]
fix:
$B
fix: $B

0 comments on commit 89a0cf8

Please sign in to comment.