Skip to content

Commit

Permalink
[Tests] use --legacy-peer-deps for npm 7
Browse files Browse the repository at this point in the history
This is needed because we test on eslint < 5, and `@typescript-eslint/parser` has peer dep requirements of eslint >= 5.
  • Loading branch information
ljharb committed Feb 2, 2021
1 parent f2db74a commit b1aef78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/dep-time-travel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

echo "installing ${ESLINT_VERSION}..."

npm install --no-save "eslint@${ESLINT_VERSION}" --ignore-scripts || true
NPM_CONFIG_LEGACY_PEER_DEPS=true 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
Expand Down

0 comments on commit b1aef78

Please sign in to comment.