Skip to content

Commit 56fa3d6

Browse files
committed
build: add test for eslint@5 in ci
1 parent 4befa80 commit 56fa3d6

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.travis.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
language: node_js
22
node_js:
3-
- node
3+
- 12
44
- 10
55
- 8
6+
- 6
67
before_install:
78
- npm config set depth 0
9+
before_script:
10+
- 'if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'
811
notifications:
912
email: false
1013
sudo: false
1114
script:
1215
- npm run test
13-
- npm run lint
16+
- 'if [ -n "${LINT-}" ]; then npm run lint; fi'
1417
- npm run build
18+
env:
19+
matrix:
20+
- ESLINT=6
21+
- ESLINT=5
22+
matrix:
23+
fast_finish: true
24+
include:
25+
- node_js: 'lts/*'
26+
env: LINT=true
27+
exclude:
28+
- node_js: 6
29+
env: ESLINT=6
1530
after_success:
1631
- export NODE_ENV=production
1732
- npm run build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"main": "./dist/index.js",
5454
"name": "eslint-plugin-jsdoc",
5555
"peerDependencies": {
56-
"eslint": ">=6.0.0"
56+
"eslint": "^5.0.0 || ^6.0.0"
5757
},
5858
"repository": {
5959
"type": "git",

0 commit comments

Comments
 (0)