]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
chore: add lint cache (#10974)
authorSimon He <57086651+Simon-He95@users.noreply.github.com>
Wed, 14 Dec 2022 21:24:43 +0000 (05:24 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Dec 2022 21:24:43 +0000 (16:24 -0500)
* chore: add lint cache

* chore: update

* chore: update

.gitignore
package.json

index a03307d82f598151e58039340df095d2cc78fc68..bf69bd2c6b4dce6235b15efa4e4830130f451465 100644 (file)
@@ -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
index 01b90309611d60e9aa006f0e4031175dc883c86e..4befb13fd4669b0477912e61492bea841a5a82b0 100644 (file)
@@ -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",