Skip to content

Commit d8c223b

Browse files
tests: run tests against eslint@next
1 parent ff74934 commit d8c223b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ matrix:
1010
env: ESLINT_VERSION=latest RUN_LINT=true RUN_INTEGRATION=true
1111
- node_js: 12
1212
env: ESLINT_VERSION=4.7 RUN_INTEGRATION=true
13+
- node_js: 12
14+
env: ESLINT_VERSION=next RUN_INTEGRATION=true
1315

1416
script:
1517
- if [[ $RUN_LINT = true ]]; then npm run lint; fi

src/__tests__/plugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ const eslintVersion = require("eslint/package.json").version
77
const plugin = require("..")
88

99
function matchVersion(versionSpec) {
10-
return semver.satisfies(eslintVersion, versionSpec)
10+
return semver.satisfies(eslintVersion, versionSpec, {
11+
includePrerelease: true,
12+
})
1113
}
1214

1315
function ifVersion(versionSpec, fn, ...args) {

0 commit comments

Comments
 (0)