From e48a468b5926e7393b42b544202754a5c24bd765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Fri, 24 Sep 2021 16:16:49 +0800 Subject: [PATCH 1/7] --wip-- [skip ci] --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93d483ae..750bd978 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,3 +41,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 + From bd074ef1661d2b893b0435e14a426df98b7053a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Fri, 24 Sep 2021 16:21:58 +0800 Subject: [PATCH 2/7] Build: test on eslint v8 --- .github/workflows/main.yml | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 750bd978..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: diff --git a/package.json b/package.json index 3194399c..0f8dde81 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@not-an-aardvark/node-release-script": "^0.1.0", "chai": "^4.1.0", "dirty-chai": "^2.0.1", - "eslint": "^7.9.0", + "eslint": "8.0.0-beta.2", "eslint-config-not-an-aardvark": "^2.1.0", "eslint-plugin-markdown": "^2.0.1", "eslint-plugin-node": "^11.1.0", From 1918a973e55c11c18e342b8be89d3250c30e22a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Sun, 26 Sep 2021 10:14:50 +0800 Subject: [PATCH 3/7] chore: upgrade to 8.0.0-rc.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f8dde81..e28725ad 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@not-an-aardvark/node-release-script": "^0.1.0", "chai": "^4.1.0", "dirty-chai": "^2.0.1", - "eslint": "8.0.0-beta.2", + "eslint": "8.0.0-rc.0", "eslint-config-not-an-aardvark": "^2.1.0", "eslint-plugin-markdown": "^2.0.1", "eslint-plugin-node": "^11.1.0", From 4da0f48b5088e58e3c0b553e1a06d1c291ae6c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Sun, 26 Sep 2021 10:23:38 +0800 Subject: [PATCH 4/7] fix: use fisker/eslint-plugin-unicorn --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e28725ad..2b2a30c6 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "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-plugin-unicorn": "github:fisker/eslint-plugin-unicorn#eslint-8", "eslint-scope": "^5.1.1", "espree": "^7.3.0", "estraverse": "^5.0.0", From db7131e4b11391b2035947b55cd9c761e016efdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Sun, 26 Sep 2021 17:14:00 +0800 Subject: [PATCH 5/7] chore: upgrade espree & eslint-scope to use the same version as eslint v8 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2b2a30c6..012ae224 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-self": "^1.2.1", "eslint-plugin-unicorn": "github:fisker/eslint-plugin-unicorn#eslint-8", - "eslint-scope": "^5.1.1", - "espree": "^7.3.0", + "eslint-scope": "^6.0.0", + "espree": "^9.0.0", "estraverse": "^5.0.0", "lodash": "^4.17.2", "markdownlint-cli": "^0.27.1", From 490a700669e0915d15f4e90cab8ca31fc1423bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Mon, 27 Sep 2021 12:32:23 +0800 Subject: [PATCH 6/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 012ae224..c542e923 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@not-an-aardvark/node-release-script": "^0.1.0", "chai": "^4.1.0", "dirty-chai": "^2.0.1", - "eslint": "8.0.0-rc.0", + "eslint": "^8.0.0-rc.0", "eslint-config-not-an-aardvark": "^2.1.0", "eslint-plugin-markdown": "^2.0.1", "eslint-plugin-node": "^11.1.0", From a4629d1131003a5030088b700d462451e54760d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Mon, 11 Oct 2021 10:15:32 +0800 Subject: [PATCH 7/7] Update package.json Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c542e923..b9fe3997 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@not-an-aardvark/node-release-script": "^0.1.0", "chai": "^4.1.0", "dirty-chai": "^2.0.1", - "eslint": "^8.0.0-rc.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",