Skip to content

Commit 0f39a8e

Browse files
committed
chore: update devDeps and Travis
1 parent c51d616 commit 0f39a8e

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.travis.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ node_js:
66
- 6
77
before_install:
88
- npm config set depth 0
9-
before_script:
10-
- 'if [ "${ESLINT-}" == "6" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'
11-
- 'if [ "${ESLINT-}" == "5" ]; then npm install --no-save "eslint@${ESLINT}" [email protected] [email protected] [email protected] [email protected] [email protected] @typescript-eslint/[email protected] ; fi'
9+
before_script: >
10+
node_version=$(node -v);
11+
if [ ${node_version:3:1} = "." ]; then
12+
echo "Node 10+"
13+
npm install --no-save "eslint@${ESLINT}"
14+
else
15+
if [ ${node_version:1:2} -ge 8 ]; then
16+
echo "Node 8+"
17+
npm install --no-save "eslint@${ESLINT}" [email protected]
18+
else
19+
echo "Node <= 6"
20+
21+
fi
22+
fi
1223
notifications:
1324
email: false
1425
sudo: false

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@babel/plugin-transform-flow-strip-types": "^7.7.4",
2323
"@babel/preset-env": "^7.7.7",
2424
"@babel/register": "^7.7.7",
25-
"@typescript-eslint/parser": "^2.14.0",
25+
"@typescript-eslint/parser": "^2.15.0",
2626
"babel-eslint": "^10.0.3",
2727
"babel-plugin-add-module-exports": "^1.0.2",
2828
"babel-plugin-istanbul": "^6.0.0",
@@ -31,7 +31,7 @@
3131
"eslint-config-canonical": "^18.1.0",
3232
"gitdown": "^3.1.2",
3333
"glob": "^7.1.6",
34-
"husky": "^3.1.0",
34+
"husky": "^4.0.0",
3535
"mocha": "^7.0.0",
3636
"nyc": "^15.0.0",
3737
"semantic-release": "^15.14.0",

0 commit comments

Comments
 (0)