Update tsep to v11 and update snapshot (#3471)
* Update tsep to v11 and update snapshot * Remove unneeded TSNamespaceFunctionDeclarationmaster
parent
d6db35c16b
commit
5feb76f13f
|
@ -50,7 +50,7 @@
|
|||
"semver": "5.4.1",
|
||||
"string-width": "2.1.1",
|
||||
"typescript": "2.6.2",
|
||||
"typescript-eslint-parser": "10.0.0",
|
||||
"typescript-eslint-parser": "11.0.0",
|
||||
"unicode-regex": "1.0.1",
|
||||
"unified": "6.1.6"
|
||||
},
|
||||
|
|
|
@ -661,7 +661,6 @@ function isStatement(node) {
|
|||
node.type === "TSInterfaceDeclaration" ||
|
||||
node.type === "TSModuleDeclaration" ||
|
||||
node.type === "TSNamespaceExportDeclaration" ||
|
||||
node.type === "TSNamespaceFunctionDeclaration" ||
|
||||
node.type === "TypeAlias" ||
|
||||
node.type === "VariableDeclaration" ||
|
||||
node.type === "WhileStatement" ||
|
||||
|
|
|
@ -473,7 +473,6 @@ function genericPrintNoParens(path, options, print, args) {
|
|||
]);
|
||||
case "FunctionDeclaration":
|
||||
case "FunctionExpression":
|
||||
case "TSNamespaceFunctionDeclaration":
|
||||
if (isNodeStartingWithDeclare(n, options)) {
|
||||
parts.push("declare ");
|
||||
}
|
||||
|
@ -3486,8 +3485,7 @@ function printExportDeclaration(path, options, print) {
|
|||
decl.type === "ExportDefaultDeclaration" &&
|
||||
(decl.declaration.type !== "ClassDeclaration" &&
|
||||
decl.declaration.type !== "FunctionDeclaration" &&
|
||||
decl.declaration.type !== "TSAbstractClassDeclaration" &&
|
||||
decl.declaration.type !== "TSNamespaceFunctionDeclaration")
|
||||
decl.declaration.type !== "TSAbstractClassDeclaration")
|
||||
) {
|
||||
parts.push(semi);
|
||||
}
|
||||
|
|
|
@ -201,8 +201,7 @@ exports[`commentInNamespaceDeclarationWithIdentifierPathName.ts 1`] = `
|
|||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
namespace hello.hi.world {
|
||||
function foo() {
|
||||
}
|
||||
function foo() {}
|
||||
}
|
||||
|
||||
`;
|
||||
|
|
|
@ -4411,9 +4411,9 @@ typedarray@^0.0.6:
|
|||
version "0.0.6"
|
||||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||
|
||||
typescript-eslint-parser@10.0.0:
|
||||
version "10.0.0"
|
||||
resolved "https://registry.yarnpkg.com/typescript-eslint-parser/-/typescript-eslint-parser-10.0.0.tgz#82b550253659c311c2e4a4d18311b94dd08a36d7"
|
||||
typescript-eslint-parser@11.0.0:
|
||||
version "11.0.0"
|
||||
resolved "https://registry.yarnpkg.com/typescript-eslint-parser/-/typescript-eslint-parser-11.0.0.tgz#37dba6a0130dd307504aa4b4b21b0d3dc7d4e9f2"
|
||||
dependencies:
|
||||
lodash.unescape "4.0.1"
|
||||
semver "5.4.1"
|
||||
|
|
Loading…
Reference in New Issue