Skip to content

Commit

Permalink
Remove @typescript-eslint/parser before running ESLint<v5 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Schmadel authored and ljharb committed Apr 8, 2019
1 parent f0eb917 commit 49af9d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/dep-time-travel.sh
Expand Up @@ -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..."
Expand Down

0 comments on commit 49af9d8

Please sign in to comment.