diff --git a/tests/dep-time-travel.sh b/tests/dep-time-travel.sh index eae24998d..fcd3cda1d 100755 --- a/tests/dep-time-travel.sh +++ b/tests/dep-time-travel.sh @@ -4,6 +4,12 @@ npm install --no-save eslint@$ESLINT_VERSION --ignore-scripts || true +# completely remove the new typescript parser for ESLint < v5 +if [[ "$ESLINT_VERSION" -lt "5" ]]; then + echo "Removing @typescript-eslint/parser..." + npm uninstall @typescript-eslint/parser +fi + # use these alternate typescript dependencies for ESLint < v4 if [[ "$ESLINT_VERSION" -lt "4" ]]; then echo "Downgrading babel-eslint..."