Update angular-estree-parser (#12993)
* Update `angular-estree-parser` * Add tests * Add changelog
This commit is contained in:
1 parent
7f9a08762d
commit
97bab8f984
6 files changed
+36
-5
No files matched your search
@@ -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>
|
||||
```
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
"@typescript-eslint/typescript-estree": "5.27.0",
|
||||
"acorn": "8.7.0",
|
||||
"acorn-jsx": "5.3.2",
|
||||
"angular-estree-parser": "2.5.0",
|
||||
"angular-estree-parser": "2.5.1",
|
||||
"angular-html-parser": "1.8.0",
|
||||
"camelcase": "6.3.0",
|
||||
"chalk": "5.0.1",
|
||||
|
||||
@@ -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>
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -0,0 +1 @@
|
||||
<ng-container *ngTemplateOutlet="someTmpl; context: {app}"></ng-container>
|
||||
@@ -0,0 +1 @@
|
||||
run_spec(__dirname, ["angular"]);
|
||||
@@ -1878,10 +1878,10 @@ ajv@^6.10.0, ajv@^6.12.4:
|
||||
json-schema-traverse "^0.4.1"
|
||||
uri-js "^4.2.2"
|
||||
|
||||
angular-estree-parser@2.5.0:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/angular-estree-parser/-/angular-estree-parser-2.5.0.tgz#b2d05b54cc765c8181245c823fb9b4ef75dc5483"
|
||||
integrity sha512-0OLRBYPkdlJHzRKL1PQVWLYnSXvAE7nnOVHhfVlqbdyAMg3rbk8U3Z4vk+5GG4x8ooT88T/89jtsOoGPzjKUbA==
|
||||
angular-estree-parser@2.5.1:
|
||||
version "2.5.1"
|
||||
resolved "https://registry.yarnpkg.com/angular-estree-parser/-/angular-estree-parser-2.5.1.tgz#a08791f64f1a9453ecb99be5379f7f282e46c6ca"
|
||||
integrity sha512-QP+1HEp9sUV3/ADU02IRc+Vn9vvWZS2rRkxiXCpSpZZx3BqcYTm2Eg/gWwLG3H9XASXnf9i1KyNOIYyRy5Ja+w==
|
||||
dependencies:
|
||||
lines-and-columns "^1.1.6"
|
||||
tslib "^2.0.3"
|
||||
|
||||
Reference in new issue
Block a user