-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LiquidDoc] Formatting support for implicit descriptions (#812)
## What are you adding in this PR? Closes Shopify/developer-tools-team#587 Mothing too complicated here. We just need to use the is implicit property to determine if we should append the `@description` annotation or not. Indenting, etc should behave similarly to a normal description. ## Before you deploy - [x] I included a patch bump `changeset` _The ends result of this change is more of a bug fix from introducing a new node,so I chose to go with a patch._
- Loading branch information
Showing
4 changed files
with
25 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,5 @@ | ||
--- | ||
'@shopify/prettier-plugin-liquid': patch | ||
--- | ||
|
||
Prevent prettier from appending `@description` annotation before implicit descriptions |
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