From 32b206a137933129da86684215f131b4128d8f95 Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Fri, 14 Apr 2023 04:30:18 +0800 Subject: [PATCH] chore: add lint cache (#1917) --- .prettierrc | 8 ++++---- package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.prettierrc b/.prettierrc index b85f39b225..43aee1a496 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,6 +1,6 @@ { - "singleQuote": true, - "trailingComma": "es5", - "tabWidth": 2, - "arrowParens": "avoid" + "singleQuote": true, + "trailingComma": "es5", + "tabWidth": 2, + "arrowParens": "avoid" } diff --git a/package.json b/package.json index 1c9b69d2ea..ab1ef693ad 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "start": "yarn workspace @affine/web start", "start:storybook": "yarn exec serve packages/component/storybook-static -l 6006", "start:e2e": "yar dlx run-p start start:storybook", - "lint": "eslint . --ext .js,mjs,.ts,.tsx", + "lint": "eslint . --ext .js,mjs,.ts,.tsx --cache", "lint:fix": "yarn lint --fix", "test": "playwright test", "test:coverage": "COVERAGE=true yarn test --forbid-only", @@ -33,7 +33,7 @@ "notify": "node scripts/notify.mjs" }, "lint-staged": { - "*": "prettier --write --ignore-unknown", + "*": "prettier --write --ignore-unknown --cache", "*.{ts,tsx,mjs,js,jsx}": "eslint --cache --fix" }, "devDependencies": {