forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prettier#16147: do not format CDATA with angular parser
- Loading branch information
Yana Peycheva
committed
Apr 29, 2024
1 parent
1264a4c
commit 3597494
Showing
4 changed files
with
27 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
tests/format/angular/cdata/__snapshots__/jsfmt.spec.js.snap
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,19 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`example.html format 1`] = ` | ||
====================================options===================================== | ||
parsers: ["angular"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
<![CDATA[<app-alert> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. | ||
</app-alert>]]> | ||
=====================================output===================================== | ||
<![CDATA[<app-alert> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. | ||
</app-alert>]]> | ||
================================================================================ | ||
`; |
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,3 @@ | ||
<![CDATA[<app-alert> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. | ||
</app-alert>]]> |
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 @@ | ||
runFormatTest(import.meta, ["angular"]); |