Skip to content

Commit

Permalink
fix: allow eslint@8 in peer deps
Browse files Browse the repository at this point in the history
v7 and v6 are still supported and tested in CI
  • Loading branch information
jwbay committed Nov 13, 2021
1 parent 38116a3 commit cad9f27
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 143 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
run: yarn build
- name: Lint
run: yarn lint
- name: Test ESLint@6
run: yarn switch:6 && yarn test
- name: Test ESLint@8
run: yarn test
- name: Test ESLint@7
run: yarn switch:7 && yarn test
- name: Test ESLint@6
run: yarn switch:6 && yarn test

release:
name: Release
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"format": "prettier . --write",
"test": "jest",
"switch:6": "yarn remove eslint --ignore-engines && yarn add eslint@^6.0.0 -D --ignore-engines",
"switch:7": "yarn remove eslint --ignore-engines && yarn add eslint@^7.0.0 -D --ignore-engines"
"switch:7": "yarn remove eslint --ignore-engines && yarn add eslint@^7.0.0 -D --ignore-engines",
"switch:8": "yarn remove eslint --ignore-engines && yarn add eslint@^8.0.0 -D --ignore-engines"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +29,7 @@
"author": "justin.bay@outlook.com",
"license": "MIT",
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0",
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0",
"jest": "*"
},
"devDependencies": {
Expand All @@ -39,7 +40,7 @@
"@types/estree": "^0.0.50",
"@types/jest": "^27.0.0",
"@types/node": "^16.6.0",
"eslint": "^7.32.0",
"eslint": "^8.0.0",
"jest": "^27.0.0",
"prettier": "^2.4.0",
"semantic-release": "^18.0.0",
Expand Down
Loading

0 comments on commit cad9f27

Please sign in to comment.