Skip to content

Commit 7a9995a

Browse files
committed
[Tests] test on both eslint v3 and v4
1 parent d962f1b commit 7a9995a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ cache:
1111
yarn: true
1212
directories:
1313
- node_modules
14+
before_script:
15+
- if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}"; fi
1416
script:
1517
- if [ "${FLOW-}" = true ]; then npm run flow; fi
1618
- if [ "${LINT-}" = true ]; then npm run lint; fi
@@ -21,6 +23,9 @@ sudo: false
2123
env:
2224
global:
2325
- TEST=true
26+
matrix:
27+
- ESLINT=4
28+
- ESLINT=3
2429
matrix:
2530
fast_finish: true
2631
include:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"babel-polyfill": "^6.26.0",
4141
"babel-preset-es2015": "^6.24.1",
4242
"coveralls": "^3.0.1",
43-
"eslint": "^4.19.1",
43+
"eslint": "^3 || ^4",
4444
"eslint-config-airbnb-base": "^13.0.0",
4545
"eslint-plugin-flowtype": "^2.49.3",
4646
"eslint-plugin-import": "^2.13.0",

0 commit comments

Comments
 (0)