Skip to content

Commit

Permalink
feat: support ESLint 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Oct 12, 2021
1 parent 4855096 commit 4425a54
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ jobs:
main:
strategy:
matrix:
node: [10.12, 10, 12.0, 12, 14, 15]
eslint: [7, 8]
node: [10.12, 10, 12.0, 12, 14, 16]
exclude:
- eslint: 8
node: 10
- eslint: 8
node: 10.12
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v2
Expand All @@ -22,10 +26,13 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: 📥 Download deps
- name: 📥 Download dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: 📥 Install ESLint v${{ matrix.eslint }}
run: npm install eslint@${{ matrix.eslint }}

- name: ▶️ Run test script
run: npm run test -- --runInBand
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
"dependencies": {},
"devDependencies": {
"doctoc": "^2.0.0",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-eslint-plugin": "^3.0.0",
"eslint-plugin-jest": "^24.3.4",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-plugin": "^4.0.0-0",
"eslint-plugin-jest": "^24.7.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-runner-eslint": "^0.10.0",
"jest-runner-eslint": "^0.11.1",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1"
},
"peerDependencies": {
"eslint": "^7.0.0"
"eslint": "^7.0.0 || ^8.0.0"
},
"engines": {
"node": "^10.12.0 || >=12.0.0"
Expand Down

0 comments on commit 4425a54

Please sign in to comment.