Skip to content

Commit 97bab8f

Browse files
authored
Update angular-estree-parser (#12993)
* Update `angular-estree-parser` * Add tests * Add changelog
1 parent 7f9a087 commit 97bab8f

6 files changed

Lines changed: 36 additions & 5 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#### Fix shorthand properties formatting (#12993 by @sosukesuzuki, @fisker)
2+
3+
```html
4+
<!-- Input -->
5+
<ng-container *ngTemplateOutlet="someTmpl; context: { app }"></ng-container>
6+
7+
<!-- Prettier stable -->
8+
<ng-container
9+
*ngTemplateOutlet="someTmpl; context: { app: this.app }"
10+
></ng-container>
11+
12+
<!-- Prettier main -->
13+
<ng-container *ngTemplateOutlet="someTmpl; context: { app }"></ng-container>
14+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@typescript-eslint/typescript-estree": "5.27.0",
3131
"acorn": "8.7.0",
3232
"acorn-jsx": "5.3.2",
33-
"angular-estree-parser": "2.5.0",
33+
"angular-estree-parser": "2.5.1",
3434
"angular-html-parser": "1.8.0",
3535
"camelcase": "6.3.0",
3636
"chalk": "5.0.1",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`basic.html format 1`] = `
4+
====================================options=====================================
5+
parsers: ["angular"]
6+
printWidth: 80
7+
| printWidth
8+
=====================================input======================================
9+
<ng-container *ngTemplateOutlet="someTmpl; context: {app}"></ng-container>
10+
11+
=====================================output=====================================
12+
<ng-container *ngTemplateOutlet="someTmpl; context: { app }"></ng-container>
13+
14+
================================================================================
15+
`;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ng-container *ngTemplateOutlet="someTmpl; context: {app}"></ng-container>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run_spec(__dirname, ["angular"]);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,10 +1878,10 @@ ajv@^6.10.0, ajv@^6.12.4:
18781878
json-schema-traverse "^0.4.1"
18791879
uri-js "^4.2.2"
18801880

1881-
angular-estree-parser@2.5.0:
1882-
version "2.5.0"
1883-
resolved "https://registry.yarnpkg.com/angular-estree-parser/-/angular-estree-parser-2.5.0.tgz#b2d05b54cc765c8181245c823fb9b4ef75dc5483"
1884-
integrity sha512-0OLRBYPkdlJHzRKL1PQVWLYnSXvAE7nnOVHhfVlqbdyAMg3rbk8U3Z4vk+5GG4x8ooT88T/89jtsOoGPzjKUbA==
1881+
angular-estree-parser@2.5.1:
1882+
version "2.5.1"
1883+
resolved "https://registry.yarnpkg.com/angular-estree-parser/-/angular-estree-parser-2.5.1.tgz#a08791f64f1a9453ecb99be5379f7f282e46c6ca"
1884+
integrity sha512-QP+1HEp9sUV3/ADU02IRc+Vn9vvWZS2rRkxiXCpSpZZx3BqcYTm2Eg/gWwLG3H9XASXnf9i1KyNOIYyRy5Ja+w==
18851885
dependencies:
18861886
lines-and-columns "^1.1.6"
18871887
tslib "^2.0.3"

0 commit comments

Comments
 (0)