From 413a4c620a76ec876d9ff41c2b75839745d896de Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Thu, 28 May 2020 22:50:20 +0800 Subject: [PATCH] chore(devDeps): upgrade for eslint (#500) * chore(devDeps): upgrade for eslint - eslint - @typescript-eslint/eslint-plugin - @typescript-eslint/parser lerna.json hoist not need @typescript-eslint/* ref: https://github.com/typescript-eslint/typescript-eslint/pull/2105 * chore(eslint-midway-contrib): remove devDeps typescript --- lerna.json | 4 ---- package.json | 2 +- packages/eslint-midway-contrib/package.json | 7 +++---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lerna.json b/lerna.json index 1a4b468ecc6..ba986b688ee 100644 --- a/lerna.json +++ b/lerna.json @@ -6,10 +6,6 @@ "bootstrap": { "hoist": true, "noCi": true, - "nohoist": [ - "@typescript-eslint/eslint-plugin", - "@typescript-eslint/parser" - ], "npmClientArgs": [ "--no-package-lock" ] diff --git a/package.json b/package.json index 58a59bf67bc..91a92ed4484 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "autocannon": "^2.4.1", "chalk": "^3.0.0", "debug": "^4.1.1", - "eslint": "6", + "eslint": "7", "gh-pages": "^2.2.0", "lerna": "^3.14.1", "lerna-relinker": "^1.4.0", diff --git a/packages/eslint-midway-contrib/package.json b/packages/eslint-midway-contrib/package.json index 4f44af33f78..ed99c5e05f2 100644 --- a/packages/eslint-midway-contrib/package.json +++ b/packages/eslint-midway-contrib/package.json @@ -25,8 +25,8 @@ "license": "MIT", "author": "waiting", "dependencies": { - "@typescript-eslint/eslint-plugin": "^3.0.0", - "@typescript-eslint/parser": "^3.0.0", + "@typescript-eslint/eslint-plugin": "^3.0.2", + "@typescript-eslint/parser": "^3.0.2", "eslint-plugin-import": "^2.20.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-unicorn": "^20.0.0" @@ -34,8 +34,7 @@ "devDependencies": { "@types/tape": "4", "eslint": "7", - "tape": "5", - "typescript": ">=3.9" + "tape": "5" }, "peerDependencies": { "eslint": ">=7.0.0"