refactor(typescript): remove unnecessary experimental types (#4819)

Ref: eslint/typescript-eslint-parser#429
master
Ika 2018-07-10 10:05:31 +08:00 committed by GitHub
parent dc362c212d
commit b1c0c8c8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 9 deletions

View File

@ -57,7 +57,7 @@
"semver": "5.4.1",
"string-width": "2.1.1",
"typescript": "3.0.0-dev.20180626",
"typescript-eslint-parser": "eslint/typescript-eslint-parser#42f29a1db5c51262fd9ed2d6105015da8925ba2d",
"typescript-eslint-parser": "eslint/typescript-eslint-parser#6eec85b1466fbef087838203b246f70fa71ac0ac",
"unicode-regex": "1.0.1",
"unified": "6.1.6",
"yaml": "1.0.0-rc.4",

View File

@ -231,7 +231,6 @@ function needsParens(path, options) {
case "UnaryExpression":
case "SpreadElement":
case "SpreadProperty":
case "ExperimentalSpreadProperty":
case "BindExpression":
case "AwaitExpression":
case "TSAsExpression":
@ -366,7 +365,6 @@ function needsParens(path, options) {
case "LogicalExpression":
case "SpreadElement":
case "SpreadProperty":
case "ExperimentalSpreadProperty":
case "TSAsExpression":
case "TSNonNullExpression":
case "BindExpression":
@ -489,7 +487,6 @@ function needsParens(path, options) {
case "UnaryExpression":
case "SpreadElement":
case "SpreadProperty":
case "ExperimentalSpreadProperty":
case "BinaryExpression":
case "LogicalExpression":
case "ExportDefaultDeclaration":

View File

@ -626,8 +626,6 @@ function printPathNoParens(path, options, print, args) {
case "SpreadElement":
case "SpreadElementPattern":
case "RestProperty":
case "ExperimentalRestProperty":
case "ExperimentalSpreadProperty":
case "SpreadProperty":
case "SpreadPropertyPattern":
case "RestElement":
@ -1198,7 +1196,6 @@ function printPathNoParens(path, options, print, args) {
lastElem &&
(lastElem.type === "RestProperty" ||
lastElem.type === "RestElement" ||
lastElem.type === "ExperimentalRestProperty" ||
hasNodeIgnoreComment(lastElem))
);

View File

@ -5617,9 +5617,9 @@ typedarray@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
typescript-eslint-parser@eslint/typescript-eslint-parser#42f29a1db5c51262fd9ed2d6105015da8925ba2d:
typescript-eslint-parser@eslint/typescript-eslint-parser#6eec85b1466fbef087838203b246f70fa71ac0ac:
version "16.0.1"
resolved "https://codeload.github.com/eslint/typescript-eslint-parser/tar.gz/42f29a1db5c51262fd9ed2d6105015da8925ba2d"
resolved "https://codeload.github.com/eslint/typescript-eslint-parser/tar.gz/6eec85b1466fbef087838203b246f70fa71ac0ac"
dependencies:
lodash.unescape "4.0.1"
semver "5.5.0"