From c9f55ccf19481f91379188f18ab805140e58c69b Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Thu, 15 Dec 2022 05:24:43 +0800 Subject: [PATCH] chore: add lint cache (#10974) * chore: add lint cache * chore: update * chore: update --- .gitignore | 6 +++++- package.json | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a03307d82..bf69bd2c6 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,8 @@ npm-debug.log* # Docs .cache-loader build/ -# generated typedocs + +# Generated type docs docs/api docs/.vuepress/dist @@ -31,3 +32,6 @@ docs/.vuepress/dist # Generated /types/tests/autogen*.ts + +# Eslint +.eslintcache diff --git a/package.json b/package.json index 01b903096..4befb13fd 100644 --- a/package.json +++ b/package.json @@ -58,9 +58,9 @@ "dev:ff": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers firefox --grep", "docs": "pnpm run build && pnpm --filter \"./docs/**\" build", "docs:dev": "pnpm run build && pnpm --filter \"./docs/**\" dev", - "lint-js": "eslint \"src/**/*.{js,ts}\" \"test/**/*.js\" \"docs/**/*.js\"", - "lint-md": "eslint \"**/*.md\"", - "lint-types": "eslint \"types/**/*.ts\" && pnpm build && node types/tests/autogen.js && tsc -p types/tests/", + "lint-js": "eslint \"src/**/*.{js,ts}\" \"test/**/*.js\" \"docs/**/*.js\" --cache", + "lint-md": "eslint \"**/*.md\" --cache", + "lint-types": "eslint \"types/**/*.ts\" --cache && pnpm build && node types/tests/autogen.js && tsc -p types/tests/", "lint": "concurrently \"pnpm:lint-*\"", "test-size": "size-limit", "test": "pnpm lint && pnpm test-ci", -- 2.47.2