From 12a6f7182dec1d685eaa30e5e4e708be63ff37c1 Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Fri, 17 Feb 2023 22:12:19 +0800 Subject: [PATCH] chore: add lint cache (#40369) --- .eslintignore | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintignore b/.eslintignore index 1d60062b10..6fbfa158dc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -14,6 +14,7 @@ server .dumi/tmp-production !.dumi/ node_modules +.eslintcache _site dist coverage diff --git a/package.json b/package.json index 0654d510fb..59bb595c1d 100644 --- a/package.json +++ b/package.json @@ -76,9 +76,9 @@ "lint:deps": "antd-tools run deps-lint", "lint:md": "remark . -f -q", "lint:style": "ts-node --project tsconfig.node.json scripts/check-cssinjs.js", - "lint:script": "eslint . --ext .js,.jsx,.ts,.tsx", + "lint:script": "eslint . --ext .js,.jsx,.ts,.tsx --cache", "pre-publish": "npm run test-all -- --skip-build", - "prettier": "prettier -c --write **/*", + "prettier": "prettier -c --write **/* --cache", "pub": "npm run version && npm run collect-token-statistic && npm run token-meta && antd-tools run pub", "rome:format": "rome format --write .", "prepublishOnly": "antd-tools run guard",