-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support ESLint 8.x and Node 17 BREAKING CHANGE: - This update requires the disabling of the `jsdoc/check-examples` rule! We can hopefully restore this rule after eslint/eslint#14745 - Requires ESLint@^7.0.0 || ^8.0.0 - Updates `jsdoc-type-pratt-parser` and `jsdoccomment` Co-authored-by: Brett Zamir <[email protected]>
- Loading branch information
1 parent
45f8ff8
commit 14d7832
Showing
12 changed files
with
118 additions
and
59 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 |
---|---|---|
|
@@ -3,25 +3,27 @@ dist: xenial | |
language: node_js | ||
|
||
node_js: | ||
- "17" | ||
- "16" | ||
- "14.14.0" | ||
- "12.20.0" | ||
|
||
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 | ||
if [ ${node_version:1:2} = "17" ]; then | ||
echo "Deadsnakes" | ||
sudo add-apt-repository --yes ppa:deadsnakes/ppa | ||
echo "Update apt-get" | ||
sudo apt-get update | ||
echo "Install Python3" | ||
sudo apt-get --assume-yes install python3.6 | ||
sudo ln -sf /usr/bin/python3.6 /usr/bin/python3 | ||
fi; | ||
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" | ||
notifications: | ||
email: false | ||
script: | ||
|
@@ -30,16 +32,13 @@ script: | |
- 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
Oops, something went wrong.