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 27, 2021
1 parent f5d5ced commit 4733e0a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/dep-time-travel.sh
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 4733e0a

Please sign in to comment.