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",