Skip to content

Commit

Permalink
test(typescript-estree): update @babel/parser to 7.15.4 (#3833)
Browse files Browse the repository at this point in the history
* chore: install new babel/parser

* test: ignore fixitures related to TS 4.4

* test: remove AST transform for static blocks

* chore: update to 7.15.6
  • Loading branch information
sosukesuzuki committed Sep 20, 2021
1 parent bdb8f0b commit 1bee15c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -72,7 +72,7 @@
},
"devDependencies": {
"@babel/code-frame": "^7.12.13",
"@babel/parser": "^7.14.6",
"@babel/parser": "^7.15.6",
"@babel/types": "^7.14.4",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
Expand Down
Expand Up @@ -386,6 +386,14 @@ tester.addFixturePatternConfig('typescript/basics', {
* This is intentional; babel is not checking types
*/
'catch-clause-with-invalid-annotation',
/**
* [TS-ESTREE ERRORED, BUT BABEL DID NOT]
* TypeScript 4.4 new feature
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#abstract-properties-do-not-allow-initializers
*/
'abstract-class-with-abstract-readonly-property',
'abstract-class-with-abstract-properties',
'abstract-class-with-override-property',
],
ignoreSourceType: [
/**
Expand Down
10 changes: 0 additions & 10 deletions packages/typescript-estree/tests/ast-alignment/utils.ts
Expand Up @@ -250,16 +250,6 @@ export function preprocessBabylonAST(ast: BabelTypes.File): any {
}
}
},
/**
* Babel adds a `static` property to the StaticBlock when the
* `typescript` plugin and the `classStaticBlock` plugin are enabled.
* @see https://github.com/babel/babel/issues/13674
*/
StaticBlock(node: any) {
if (node.static != null) {
delete node.static;
}
},
},
);
}
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Expand Up @@ -169,16 +169,16 @@
chalk "^2.0.0"
js-tokens "^4.0.0"

"@babel/parser@*", "@babel/parser@^7.14.6":
version "7.14.6"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.6.tgz#d85cc68ca3cac84eae384c06f032921f5227f4b2"
integrity sha512-oG0ej7efjEXxb4UgE+klVx+3j4MVo+A2vCzm7OUN4CLo6WhQ+vSOD2yJ8m7B+DghObxtLxt3EfgMWpq+AsWehQ==

"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.14.2", "@babel/parser@^7.14.3", "@babel/parser@^7.7.2":
version "7.14.4"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.4.tgz#a5c560d6db6cd8e6ed342368dea8039232cbab18"
integrity sha512-ArliyUsWDUqEGfWcmzpGUzNfLxTdTp6WU4IuP6QFSp9gGfWS6boxFCkJSJ/L4+RG8z/FnIU3WxCk6hPL9SSWeA==

"@babel/parser@^7.15.6", "@babel/parser@*":
version "7.15.6"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.6.tgz#043b9aa3c303c0722e5377fef9197f4cf1796549"
integrity sha512-S/TSCcsRuCkmpUuoWijua0Snt+f3ewU/8spLo+4AXJCZfT0bVCzLD5MuOKdrx0mlAptbKzn5AdgEIIKXxXkz9Q==

"@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
Expand Down

0 comments on commit 1bee15c

Please sign in to comment.