Skip to content

Commit 4f64274

Browse files
committed
[Tests] use --legacy-peer-deps for npm 7
This is needed because we test on eslint < 5, and `@typescript-eslint/parser` has peer dep requirements of eslint >= 5.
1 parent f2db74a commit 4f64274

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/dep-time-travel.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
echo "installing ${ESLINT_VERSION}..."
66

7-
npm install --no-save "eslint@${ESLINT_VERSION}" --ignore-scripts || true
7+
export NPM_CONFIG_LEGACY_PEER_DEPS=true
8+
9+
npm install --no-save "eslint@${ESLINT_VERSION}" --ignore-scripts
810

911
# completely remove the new TypeScript parser for ESLint < v5
1012
if [[ "$ESLINT_VERSION" -lt "5" ]]; then

0 commit comments

Comments
 (0)