-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1254 from ljharb/travis
Update deps, fix tests
- Loading branch information
Showing
12 changed files
with
219 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# expected: ESLINT_VERSION numeric env var | ||
|
||
npm install --no-save eslint@$ESLINT_VERSION --ignore-scripts || true | ||
|
||
# use these alternate typescript dependencies for ESLint < v4 | ||
if [[ "$ESLINT_VERSION" -lt "4" ]]; then | ||
echo "Downgrading babel-eslint..." | ||
npm i --no-save babel-eslint@8.0.3 | ||
|
||
echo "Downgrading TypeScript dependencies..." | ||
npm i --no-save typescript-eslint-parser@15 typescript@2.8.1 | ||
fi | ||
|
||
# typescript-eslint-parser 1.1.1+ is not compatible with node 6 | ||
if [[ "$TRAVIS_NODE_VERSION" -lt "8" ]]; then | ||
echo "Downgrading eslint-import-resolver-typescript..." | ||
npm i --no-save eslint-import-resolver-typescript@1.0.2 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.