From 7a5b8f5dc709be670348e23b00efafa67f90cbe0 Mon Sep 17 00:00:00 2001 From: c0dedance <2627702283@qq.com> Date: Wed, 5 Oct 2022 23:31:31 +0800 Subject: [PATCH] chore: add cache for and eslint --- .gitignore | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e91c60c4cb51..5563c958ee4a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ cypress/downloads cypress/screenshots docs/public/user-avatars docs/public/sponsors +.eslintcache + diff --git a/package.json b/package.json index 1ddd96f42da7..c0017bb1b19b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "docs:https-no-prefetch": "pnpm -C docs run preview-https-no-prefetch", "docs:examples": "esno scripts/update-examples.ts", "docs:contributors": "esno scripts/update-contributors.ts", - "lint": "eslint .", + "lint": "eslint --cache .", "lint:fix": "nr lint --fix", "release": "bumpp package.json packages/*/package.json --commit --push --tag && pnpm -r publish --access public", "test": "vitest --api -r test/core", @@ -85,7 +85,7 @@ }, "lint-staged": { "*.{js,ts,tsx,vue,md}": [ - "eslint --fix" + "eslint --cache --fix" ] } }