Skip to content

Commit e338057

Browse files
committed
- npm: Avoid eslint script within test script
- Travis: Conditionally load different eslint version for Node 6
1 parent 7a5b178 commit e338057

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,24 @@ node_js:
55
- 8.3
66
- 10
77
- 12
8+
9+
before_install:
10+
- npm config set depth 0
11+
before_script:
12+
- 'if [ "${ESLINT-}" == "6" ]; then npm install --no-save "eslint@${ESLINT}.1" ; fi'
13+
- 'if [ "${ESLINT-}" == "5" ]; then npm install --no-save "eslint@${ESLINT}" eslint-plugin-unicorn@8.0.2 @typescript-eslint/parser@1.13.0 ; fi'
14+
script:
15+
- npm run test
16+
- 'if [ -n "${LINT-}" ]; then npm run eslint; fi'
17+
env:
18+
matrix:
19+
- ESLINT=6
20+
- ESLINT=5
21+
matrix:
22+
fast_finish: true
23+
include:
24+
- node_js: 'lts/*'
25+
env: LINT=true
26+
exclude:
27+
- node_js: 6
28+
env: ESLINT=6

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGES for jsonpath-plus
22

3+
## ?
4+
5+
- npm: Avoid eslint script within test script
6+
- Travis: Update to check Node 6, 10, 12
7+
38
## 1.1.0 (September 25, 2019)
49

510
- Enhancement: Add explicit 'any' to `evaluate()` declaration (for use

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"build-docs": "typedoc --out docs/ts src --includeDeclarations",
9494
"open-docs": "open-cli http://localhost:8084/docs/ts/ && npm start",
9595
"mocha": "mocha --require test-helpers/node-env.js test",
96-
"test": "npm run eslint && npm run rollup && npm run mocha",
96+
"test": "npm run rollup && npm run mocha",
9797
"start": "static -p 8084",
9898
"rollup": "rollup -c",
9999
"eslint": "eslint --ext js,md,html .",

0 commit comments

Comments
 (0)