Skip to content

Commit

Permalink
feat: Support ESLint 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed May 16, 2020
1 parent fd094d7 commit 12f6411
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 24 deletions.
56 changes: 35 additions & 21 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
- name: Install Packages
run: npm install
- name: Lint
Expand All @@ -29,23 +27,39 @@ jobs:
name: Test
strategy:
matrix:
node: [12, 10, 8, 6]
eslint: [6, 5]
exclude:
# ESLint 6 doesn't support Node 6.
- node: 6
eslint: 6
# Run ESLint 5 on only the newest and oldest Node.
- node: 10
eslint: 5
- node: 8
eslint: 5
runs-on: ubuntu-latest
os: [ubuntu-latest]
eslint: [7]
node: [14]
include:
# On other platforms
# - eslint: 7
# node: 14
# os: windows-latest
- eslint: 7
node: 14
os: macos-latest
# On old Node.js versions
- eslint: 7
node: 12
os: ubuntu-latest
- eslint: 7
node: 10
os: ubuntu-latest
# On old ESLint versions
- eslint: 6
node: 14
os: ubuntu-latest
- eslint: 5
node: 14
os: ubuntu-latest
# On the minimum supported ESLint/Node.js version
- eslint: 5
node: 6.14
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Install Node.js v${{ matrix.node }}
uses: actions/setup-node@v1
with:
Expand All @@ -56,8 +70,8 @@ jobs:
npm install --global npm@^6.0.0
fi
npm install
- name: Install ESLint v${{ matrix.eslint }}
run: npm install --no-save eslint@^${{ matrix.eslint }}.0.0
- name: Install ESLint ${{ matrix.eslint }}
run: npm install --no-save eslint@${{ matrix.eslint }}
- name: Build
run: npm run -s build
- name: Test
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0",
"description": "Utilities for ESLint plugins.",
"engines": {
"node": ">=6"
"node": ">=6.14"
},
"sideEffects": false,
"main": "index",
Expand All @@ -18,9 +18,9 @@
"@mysticatea/eslint-plugin": "^12.0.0",
"codecov": "^3.6.1",
"dot-prop": "^4.2.0",
"eslint": "^6.5.1",
"eslint": "^7.0.0",
"esm": "^3.2.25",
"espree": "^6.1.1",
"espree": "^7.0.0",
"mocha": "^6.2.2",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.1",
Expand All @@ -31,6 +31,9 @@
"vuepress": "^1.2.0",
"warun": "^1.0.0"
},
"peerDependencies": {
"eslint": ">=5"
},
"scripts": {
"prebuild": "npm run -s clean",
"build": "rollup -c",
Expand Down

0 comments on commit 12f6411

Please sign in to comment.