From ac878528d17770560e69a56ca36deec79204e341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Mon, 11 Oct 2021 10:17:44 +0800 Subject: [PATCH] Build: test on eslint v8 (fixes #175) (#186) * --wip-- [skip ci] * Build: test on eslint v8 * chore: upgrade to 8.0.0-rc.0 * fix: use fisker/eslint-plugin-unicorn * chore: upgrade espree & eslint-scope to use the same version as eslint v8 * Update package.json * Update package.json Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com> Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com> --- .github/workflows/main.yml | 13 ++++++++++++- package.json | 8 ++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93d483ae..cc3fbdef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,8 @@ jobs: - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: npm install + # TODO: remove "--force" once eslint v8 released + - run: npm install --force - run: npm test lint: @@ -41,3 +42,13 @@ jobs: - run: npm install - run: npm install --save-dev eslint@6 - run: npm test + + eslint7: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + - run: npm install + - run: npm install --save-dev eslint@7 + - run: npm test + diff --git a/package.json b/package.json index 9b3ced88..78cbf9fe 100644 --- a/package.json +++ b/package.json @@ -41,14 +41,14 @@ "devDependencies": { "chai": "^4.1.0", "dirty-chai": "^2.0.1", - "eslint": "^7.9.0", + "eslint": "^8.0.0", "eslint-config-not-an-aardvark": "^2.1.0", "eslint-plugin-markdown": "^2.0.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-self": "^1.2.1", - "eslint-plugin-unicorn": "^36.0.0", - "eslint-scope": "^5.1.1", - "espree": "^7.3.0", + "eslint-plugin-unicorn": "github:fisker/eslint-plugin-unicorn#eslint-8", + "eslint-scope": "^6.0.0", + "espree": "^9.0.0", "estraverse": "^5.0.0", "lodash": "^4.17.2", "markdownlint-cli": "^0.28.1",