-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handlebars: Fix incorrect classic component syntax formatting (#8593)
* Test: Add test addressing #8584 * Fix: Resolves problem with incorrect component formatting (#8584) * Docs: Add changelog note * Test: Add test for yield formatting case * Fix: Fix handlebars yield opening tag break * Test: Add case for any helper with params * Fix: Fix opening tag for every helper with params * Chore: Revert whitespaces * Chore: Revert whitespaces in tests
- Loading branch information
Showing
4 changed files
with
171 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#### Fix formatting of classic components inside element ([#8593](https://github.com/prettier/prettier/pull/8593) by [@mikoscz](https://github.com/mikoscz) | ||
|
||
<!-- prettier-ignore --> | ||
```hbs | ||
{{!-- Input --}} | ||
<div> | ||
{{classic-component-with-many-properties | ||
class="hello" | ||
param=this.someValue | ||
secondParam=this.someValue | ||
thirdParam=this.someValue | ||
}} | ||
</div> | ||
{{!-- Prettier stable --}} | ||
<div> | ||
{{ | ||
classic-component-with-many-properties | ||
class="hello" | ||
param=this.someValue | ||
secondParam=this.someValue | ||
thirdParam=this.someValue | ||
}} | ||
</div> | ||
{{!-- Prettier master --}} | ||
<div> | ||
{{classic-component-with-many-properties | ||
class="hello" | ||
param=this.someValue | ||
secondParam=this.someValue | ||
thirdParam=this.someValue | ||
}} | ||
</div> | ||
``` |
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