Build(deps): Bump @babel/parser from 7.13.10 to 7.13.11 (#10546)

* Build(deps): Bump @babel/parser from 7.13.10 to 7.13.11

Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.13.10 to 7.13.11.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.11/packages/babel-parser)

Signed-off-by: dependabot[bot] <support@github.com>

* Format type imports in TSImportEqualsDeclaration

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
This commit is contained in:
authored and GitHub committed 2021-03-22 18:15:01 +09:00
1 parent 199be1ac2f
commit 5a789f52db
5 files changed
+70 -6

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
"dependencies": {
"@angular/compiler": "11.2.6",
"@babel/code-frame": "7.12.13",
"@babel/parser": "7.13.10",
"@babel/parser": "7.13.11",
"@glimmer/syntax": "0.77.3",
"@iarna/toml": "2.2.5",
"@typescript-eslint/typescript-estree": "4.16.1",
+7 -1
View File
@@ -457,8 +457,14 @@ function printTypescript(path, options, print) {
if (node.isExport) {
parts.push("export ");
}
parts.push("import ");
if (node.importKind && node.importKind !== "value") {
parts.push(node.importKind, " ");
}
parts.push(
"import ",
path.call(print, "id"),
" = ",
path.call(print, "moduleReference")
@@ -81,3 +81,43 @@ type T = [x<y>: A];
================================================================================
`;
exports[`type-import-equals-declaration.ts format 1`] = `
====================================options=====================================
parsers: ["babel-ts"]
printWidth: 80
| printWidth
=====================================input======================================
import type A = require("foo");
export import type = require("A");
import type
A = require("A");
import
type
a = require("a");
export import
type
B = require("B");
export
import
type
b = require("b");
=====================================output=====================================
import type A = require("foo");
export import type = require("A");
import type A = require("A");
import type a = require("a");
export import type B = require("B");
export import type b = require("b");
================================================================================
`;
@@ -0,0 +1,18 @@
import type A = require("foo");
export import type = require("A");
import type
A = require("A");
import
type
a = require("a");
export import
type
B = require("B");
export
import
type
b = require("b");
+4 -4
View File
@@ -283,10 +283,10 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
"@babel/parser@7.13.10", "@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.0", "@babel/parser@^7.13.10":
version "7.13.10"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.10.tgz#8f8f9bf7b3afa3eabd061f7a5bcdf4fec3c48409"
integrity sha512-0s7Mlrw9uTWkYua7xWr99Wpk2bnGa0ANleKfksYAES8LpWH4gW1OUr42vqKNf0us5UQNfru2wPqMqRITzq/SIQ==
"@babel/parser@7.13.11", "@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.0", "@babel/parser@^7.13.10":
version "7.13.11"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.11.tgz#f93ebfc99d21c1772afbbaa153f47e7ce2f50b88"
integrity sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==
"@babel/plugin-proposal-async-generator-functions@^7.13.8":
version "7.13.8"