-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Requires ESLint@^7.0.0 || ^8.0.0
- Loading branch information
1 parent
f0c1e44
commit 4418543
Showing
11 changed files
with
97 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,37 +9,26 @@ node_js: | |
|
||
before_install: | ||
- npm config set depth 0 | ||
install: | ||
- echo "Avoid Travis's npm auto-install" | ||
before_script: > | ||
node_version=$(node -v); | ||
if [ ${node_version:3:1} = "." ]; then | ||
echo "Node 10+" | ||
if [ ${ESLINT} = "6" ]; then | ||
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" [email protected] | ||
else | ||
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" | ||
fi | ||
else | ||
echo "Node 8+" | ||
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" [email protected] [email protected] [email protected] | ||
fi | ||
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" | ||
notifications: | ||
email: false | ||
script: | ||
- npm run test | ||
- 'if [ -n "${LINT-}" ]; then npm run lint; fi' | ||
# Disable until eslint-config-canonical fixed | ||
# - 'if [ -n "${LINT-}" ]; then npm run lint; fi' | ||
- npm run build | ||
env: | ||
jobs: | ||
- ESLINT=8 | ||
- ESLINT=7 | ||
- ESLINT=6 | ||
jobs: | ||
fast_finish: true | ||
include: | ||
- node_js: 'lts/*' | ||
env: LINT=true | ||
exclude: | ||
- node_js: 8 | ||
env: ESLINT=7 | ||
after_success: | ||
- export NODE_ENV=production | ||
- npm run build | ||
|
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
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