From b47c29881d3e3d7c83da87fccf16503fdc659948 Mon Sep 17 00:00:00 2001 From: Simon He <13917107469@163.com> Date: Sat, 10 Dec 2022 11:53:12 +0800 Subject: [PATCH] chore: add eslintcache --- .gitignore | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cb7ed724973..4a1020c0fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ dist .env .env.* .npmrc +.eslintcache # Log files npm-debug.log* diff --git a/package.json b/package.json index 0f8582f9ad0..d7d9907acf1 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ ], "scripts": { "start": "npm --prefix ./demos run start", - "lint": "eslint --quiet --no-error-on-unmatched-pattern ./", - "lint:fix": "eslint --fix --quiet --no-error-on-unmatched-pattern ./", + "lint": "eslint --cache --quiet --no-error-on-unmatched-pattern ./", + "lint:fix": "eslint --fix --cache --quiet --no-error-on-unmatched-pattern ./", "lint:staged": "lint-staged", "test:open": "cypress open --project tests", "test": "cypress run --project tests",