Skip to content

Commit 0ca5747

Browse files
authored
chore: enable cache for eslint and prettier (#1104)
1 parent 6727373 commit 0ca5747

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ output
55
.open-next
66
.wrangler
77
.turbo
8-
dist
8+
dist
9+
10+
# Cache folders
11+
.eslintcache
12+
.prettiercache

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"e2e-turbopack": "pnpm build && pnpm -r e2e-turbopack",
1818
"e2e:dev": "pnpm build && pnpm -r e2e:dev",
1919
"prettier:check": "prettier --check .",
20-
"prettier:fix": "prettier --write .",
20+
"prettier:fix": "prettier --cache --write .",
2121
"lint:check": "pnpm -r lint:check",
2222
"lint:fix": "pnpm -r lint:fix",
2323
"ts:check": "pnpm -r ts:check",

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "pnpm clean && tsc",
99
"build:watch": "tsc -w",
1010
"lint:check": "eslint",
11-
"lint:fix": "eslint --fix",
11+
"lint:fix": "eslint --cache --fix",
1212
"ts:check": "tsc --noEmit",
1313
"test": "vitest --run",
1414
"test:watch": "vitest"

0 commit comments

Comments
 (0)