From 72a36b4ac49bff0435af4c97f465ae013c8eb766 Mon Sep 17 00:00:00 2001 From: Black-Hole1 <158blackhole@gmail.com> Date: Thu, 18 Feb 2021 15:06:26 +0800 Subject: [PATCH] fix(pkg-types): lint-stage failed --- packages/types-pkg/.lintstagedrc | 2 +- packages/types-pkg/package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/types-pkg/.lintstagedrc b/packages/types-pkg/.lintstagedrc index e3022f24b6d..31ae0121ccb 100644 --- a/packages/types-pkg/.lintstagedrc +++ b/packages/types-pkg/.lintstagedrc @@ -1,6 +1,6 @@ { "*.ts": [ - "eslint --cache --fix", + "tsc --noEmit", "prettier --write" ] } diff --git a/packages/types-pkg/package.json b/packages/types-pkg/package.json index f114b73c489..b836a7ad8e7 100644 --- a/packages/types-pkg/package.json +++ b/packages/types-pkg/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "lint-staged": "^10.5.4", + "prettier": "^2.2.1", "typescript": "^4.0.5" } } diff --git a/yarn.lock b/yarn.lock index 9c24dd0f23a..6b0f5185713 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9539,6 +9539,11 @@ prettier@^2.0.5, prettier@^2.1.0: resolved "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== +prettier@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== + pretty-error@^2.1.1: version "2.1.2" resolved "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6"