From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Wed, 14 Dec 2022 21:24:43 +0000 (+0800) Subject: chore: add lint cache (#10974) X-Git-Tag: v4.1.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f55ccf19481f91379188f18ab805140e58c69b;p=thirdparty%2FChart.js.git chore: add lint cache (#10974) * chore: add lint cache * chore: update * chore: update --- 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",