Skip to content

Commit

Permalink
fixed CI merge mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Aug 26, 2021
1 parent 9f0b1df commit d9b1da2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/dep-time-travel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ npm install --no-save "eslint@${ESLINT_VERSION}" --ignore-scripts



if [[ -n "$TS_PARSER" ]]; then # if TS parser is manually set, always use it
if [ "${ESLINT_VERSION}" = '^8.0.0-0' ]; then
# workaround for eslint beta.
echo "remove this branch when eslint v8 stable version is released."
elif [[ -n "$TS_PARSER" ]]; then # if TS parser is manually set, always use it
echo "Downgrading @typescript-eslint/parser..."
npm i --no-save "@typescript-eslint/parser@${TS_PARSER}"
elif [[ "$ESLINT_VERSION" =~ "^[0-9]+$" ]] ; then # workaround for eslint beta.
if [[ "$ESLINT_VERSION" -lt "5" ]]; then # completely remove the new TypeScript parser for ESLint < v5
echo "Removing @typescript-eslint/parser..."
npm uninstall --no-save @typescript-eslint/parser
elif [[ "$TRAVIS_NODE_VERSION" -lt "10" ]]; then # TS parser 3 requires node 10+
npm i --no-save "@typescript-eslint/parser@3"
fi
elif [[ "$ESLINT_VERSION" -lt "5" ]]; then # completely remove the new TypeScript parser for ESLint < v5
echo "Removing @typescript-eslint/parser..."
npm uninstall --no-save @typescript-eslint/parser
elif [[ "$TRAVIS_NODE_VERSION" -lt "10" ]]; then # TS parser 3 requires node 10+
npm i --no-save "@typescript-eslint/parser@3"
fi

# use these alternate TypeScript dependencies for ESLint < v4
Expand Down

0 comments on commit d9b1da2

Please sign in to comment.