-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: better follow prettiers trailingComma config (#39)
- Loading branch information
1 parent
8eb2d7a
commit 0c0f507
Showing
22 changed files
with
136 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> | ||
<foo(a, b)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ foo( | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
) | ||
foo(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> | ||
<foo(a, b)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> | ||
<foo(a, b)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ div foo( | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> |
25 changes: 25 additions & 0 deletions
25
src/__tests__/__snapshots__/if-condition.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> | ||
|
||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> |
23 changes: 23 additions & 0 deletions
23
src/__tests__/__snapshots__/if-condition.expected/concise.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
) | ||
person-card [ | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
] | ||
|
||
if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
) | ||
person-card [ | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
] |
25 changes: 25 additions & 0 deletions
25
src/__tests__/__snapshots__/if-condition.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> | ||
|
||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> |
25 changes: 25 additions & 0 deletions
25
src/__tests__/__snapshots__/if-condition.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> | ||
|
||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ foo( | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc, | ||
cccccccccc | ||
)/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<if(thisPerson.address && thisPerson.phone && thisPerson.age && thisPerson.nationality)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> | ||
|
||
<if( | ||
thisPerson.address && | ||
thisPerson.phone && | ||
thisPerson.age && | ||
thisPerson.nationality, | ||
)> | ||
<person-card | ||
address=thisPerson.address | ||
phone=thisPerson.phone | ||
age=thisPerson.age | ||
/> | ||
</if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters