Skip to content

Commit c2dde58

Browse files
authored
test(typescript-estree): remove AST transformation of TSTypePredicate (typescript-eslint#2792)
1 parent 50a46c6 commit c2dde58

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

packages/typescript-estree/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"devDependencies": {
5454
"@babel/code-frame": "^7.10.4",
55-
"@babel/parser": "^7.12.5",
55+
"@babel/parser": "^7.12.7",
5656
"@babel/types": "^7.12.6",
5757
"@types/babel__code-frame": "^7.0.2",
5858
"@types/debug": "*",

packages/typescript-estree/tests/ast-alignment/utils.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,6 @@ export function preprocessBabylonAST(ast: BabelTypes.File): any {
256256
node.optional = false;
257257
}
258258
},
259-
/**
260-
* TS 3.7: type assertion function
261-
* babel: sets asserts property as true/undefined
262-
* ts-estree: sets asserts property as true/false
263-
*/
264-
TSTypePredicate(node) {
265-
if (!node.asserts) {
266-
node.asserts = false;
267-
}
268-
},
269259
},
270260
);
271261
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@
148148
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.4.tgz#6fa1a118b8b0d80d0267b719213dc947e88cc0ca"
149149
integrity sha512-MggwidiH+E9j5Sh8pbrX5sJvMcsqS5o+7iB42M9/k0CD63MjYbdP4nhSh7uB5wnv2/RVzTZFTxzF/kIa5mrCqA==
150150

151-
"@babel/parser@^7.12.5":
152-
version "7.12.5"
153-
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.5.tgz#b4af32ddd473c0bfa643bd7ff0728b8e71b81ea0"
154-
integrity sha512-FVM6RZQ0mn2KCf1VUED7KepYeUWoVShczewOCfm3nzoBybaih51h+sYVVGthW9M6lPByEPTQf+xm27PBdlpwmQ==
151+
"@babel/parser@^7.12.7":
152+
version "7.12.7"
153+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.7.tgz#fee7b39fe809d0e73e5b25eecaf5780ef3d73056"
154+
integrity sha512-oWR02Ubp4xTLCAqPRiNIuMVgNO5Aif/xpXtabhzW2HWUD47XJsAB4Zd/Rg30+XeQA3juXigV7hlquOTmwqLiwg==
155155

156156
"@babel/plugin-syntax-async-generators@^7.8.4":
157157
version "7.8.4"

0 commit comments

Comments
 (0)