Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
angular-estree-parser
(#12993)
* Update `angular-estree-parser` * Add tests * Add changelog
- Loading branch information
1 parent
7f9a087
commit 97bab8f
Showing
6 changed files
with
36 additions
and
5 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,14 @@ | ||
#### Fix shorthand properties formatting (#12993 by @sosukesuzuki, @fisker) | ||
|
||
```html | ||
<!-- Input --> | ||
<ng-container *ngTemplateOutlet="someTmpl; context: { app }"></ng-container> | ||
|
||
<!-- Prettier stable --> | ||
<ng-container | ||
*ngTemplateOutlet="someTmpl; context: { app: this.app }" | ||
></ng-container> | ||
|
||
<!-- Prettier main --> | ||
<ng-container *ngTemplateOutlet="someTmpl; context: { app }"></ng-container> | ||
``` |
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
15 changes: 15 additions & 0 deletions
15
tests/format/angular/shorthand/__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,15 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`basic.html format 1`] = ` | ||
====================================options===================================== | ||
parsers: ["angular"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
<ng-container *ngTemplateOutlet="someTmpl; context: {app}"></ng-container> | ||
=====================================output===================================== | ||
<ng-container *ngTemplateOutlet="someTmpl; context: { app }"></ng-container> | ||
================================================================================ | ||
`; |
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 @@ | ||
<ng-container *ngTemplateOutlet="someTmpl; context: {app}"></ng-container> |
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 @@ | ||
run_spec(__dirname, ["angular"]); |
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