Skip to content

Commit abc6c5a

Browse files
authored
fix(ci): use cache for eslint/prettier/typecheck to speed up dev cycle (#1390)
1 parent 32c3c06 commit abc6c5a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
"build:preview": "BUILD_PREVIEW=1 node esbuild.config.mjs",
5555
"build:harness": "BUILD_HARNESS=1 node esbuild.config.mjs",
5656
"cli": "npx tsx src/cli/index.ts",
57-
"typecheck": "tsc --noEmit",
58-
"lint": "eslint src/",
59-
"lint:fix": "eslint src/ --fix",
60-
"format": "prettier --write .",
61-
"format:check": "prettier --check .",
57+
"typecheck": "tsc --noEmit --incremental",
58+
"lint": "eslint --cache src/",
59+
"lint:fix": "eslint --cache src/ --fix",
60+
"format": "prettier --cache --write .",
61+
"format:check": "prettier --cache --check .",
6262
"secrets:check": "secretlint '**/*'",
6363
"security:audit": "npm audit --audit-level=high --omit=dev",
6464
"clean": "node -e \"require('fs').rmSync('dist', {recursive: true, force: true})\"",
@@ -169,10 +169,10 @@
169169
},
170170
"lint-staged": {
171171
"*.{ts,tsx}": [
172-
"eslint --max-warnings=10"
172+
"eslint --cache --max-warnings=10"
173173
],
174174
"*.{ts,tsx,js,jsx,json,md,css,html,yml,yaml}": [
175-
"prettier --check"
175+
"prettier --cache --check"
176176
],
177177
"*": [
178178
"secretlint"

0 commit comments

Comments
 (0)