Skip to content

Commit

Permalink
feat: Support ESLint 7.x
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Node@^10.12.x || 12.x
  • Loading branch information
MichaelDeBoey committed May 8, 2020
1 parent bd47858 commit 8274b68
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
43 changes: 30 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node: 12.x
node: 14
- name: Install Packages
run: npm install
- name: Lint
Expand All @@ -29,19 +29,36 @@ jobs:

strategy:
matrix:
eslint: [6.x, 5.x, 4.x]
node: [12.x, 10.x, 8.x]
eslint: [7, 6, 5, 4]
node: [14, 12, 12.0, 10, 10.12]
exclude:
# Run ESLint 5.x only on the latest Node.
- eslint: 5.x
node: 8.x
- eslint: 5.x
node: 10.x
# Run ESLint 4.x only on the latest Node.
- eslint: 4.x
node: 8.x
- eslint: 4.x
node: 10.x
# Run ESLint 6 only on the latest Node.
- eslint: 6
node: 10.12
- eslint: 6
node: 10
- eslint: 6
node: 12.0
- eslint: 6
node: 12
# Run ESLint 5 only on the latest Node.
- eslint: 5
node: 10.12
- eslint: 5
node: 10
- eslint: 5
node: 12.0
- eslint: 5
node: 12
# Run ESLint 4 only on the latest Node.
- eslint: 4
node: 10.12
- eslint: 4
node: 10
- eslint: 4
node: 12.0
- eslint: 4
node: 12

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.0.0",
"description": "ESLint plugin about ECMAScript syntactic features.",
"engines": {
"node": ">=8.10.0"
"node": "^10.12.0 || >=12.0.0"
},
"main": "lib/index.js",
"files": [
Expand All @@ -24,7 +24,7 @@
"codecov": "^3.5.0",
"eslint": "^6.2.2",
"eslint4b": "^6.2.2",
"espree": "^6.1.1",
"espree": "^7.0.0",
"globals": "^12.0.0",
"mocha": "^6.2.0",
"npm-run-all": "^4.1.5",
Expand Down

0 comments on commit 8274b68

Please sign in to comment.