Skip to content

Commit 49af9d8

Browse files
Andrew Schmadelljharb
Andrew Schmadel
authored andcommitted
Remove @typescript-eslint/parser before running ESLint<v5 tests
1 parent f0eb917 commit 49af9d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/dep-time-travel.sh

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
npm install --no-save eslint@$ESLINT_VERSION --ignore-scripts || true
66

7+
# completely remove the new typescript parser for ESLint < v5
8+
if [[ "$ESLINT_VERSION" -lt "5" ]]; then
9+
echo "Removing @typescript-eslint/parser..."
10+
npm uninstall @typescript-eslint/parser
11+
fi
12+
713
# use these alternate typescript dependencies for ESLint < v4
814
if [[ "$ESLINT_VERSION" -lt "4" ]]; then
915
echo "Downgrading babel-eslint..."

0 commit comments

Comments
 (0)