Skip to content

Commit

Permalink
ci: include eslint matrix (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Belco90 committed Jun 13, 2020
1 parent 7ab72d1 commit 185180a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
language: node_js

env:
- FORCE_COLOR=true
global:
- FORCE_COLOR=true
matrix:
- ESLINT=5
- ESLINT=6

node_js:
- 10.12
- 12
- node
- 14

before_script:
- 'if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'

jobs:
include:
- stage: release
if: branch = master AND type != pull_request
node_js: 12
node_js: 14
env: ESLINT=6
script: npm run build
deploy:
provider: script
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"cpy-cli": "^3.1.0",
"eslint": "^6.3.0",
"eslint": "^5 || ^6",
"eslint-config-prettier": "^6.1.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
Expand All @@ -67,11 +67,11 @@
"typescript": "^3.8.3"
},
"peerDependencies": {
"eslint": ">=5"
"eslint": "^5 || ^6"
},
"engines": {
"node": ">=8",
"npm": ">=5"
"node": "^10.12.0 || >=12.0.0",
"npm": ">=6"
},
"license": "MIT"
}

0 comments on commit 185180a

Please sign in to comment.