Skip to content

Commit 185180a

Browse files
authored
ci: include eslint matrix (#164)
1 parent 7ab72d1 commit 185180a

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.travis.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
language: node_js
22

33
env:
4-
- FORCE_COLOR=true
4+
global:
5+
- FORCE_COLOR=true
6+
matrix:
7+
- ESLINT=5
8+
- ESLINT=6
59

610
node_js:
711
- 10.12
812
- 12
9-
- node
13+
- 14
14+
15+
before_script:
16+
- 'if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'
1017

1118
jobs:
1219
include:
1320
- stage: release
1421
if: branch = master AND type != pull_request
15-
node_js: 12
22+
node_js: 14
23+
env: ESLINT=6
1624
script: npm run build
1725
deploy:
1826
provider: script

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@typescript-eslint/eslint-plugin": "^2.26.0",
4848
"@typescript-eslint/parser": "^2.26.0",
4949
"cpy-cli": "^3.1.0",
50-
"eslint": "^6.3.0",
50+
"eslint": "^5 || ^6",
5151
"eslint-config-prettier": "^6.1.0",
5252
"eslint-config-standard": "^14.1.0",
5353
"eslint-plugin-import": "^2.18.2",
@@ -67,11 +67,11 @@
6767
"typescript": "^3.8.3"
6868
},
6969
"peerDependencies": {
70-
"eslint": ">=5"
70+
"eslint": "^5 || ^6"
7171
},
7272
"engines": {
73-
"node": ">=8",
74-
"npm": ">=5"
73+
"node": "^10.12.0 || >=12.0.0",
74+
"npm": ">=6"
7575
},
7676
"license": "MIT"
7777
}

0 commit comments

Comments
 (0)