Skip to content

Commit 5d7cabe

Browse files
committed
chore: cache eslint and prettier checks
1 parent 4aa7139 commit 5d7cabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@
9090
"clear": "docusaurus clear",
9191
"deploy": "docusaurus deploy",
9292
"fix": "bun run prettier:write && bun run lint:fix",
93-
"lint:check": "bun eslint . --ext md,mdx,ts,tsx",
93+
"lint:check": "bun eslint --cache --cache-location ./node_modules/.cache/eslint/.eslint-cache . --ext md,mdx,ts,tsx",
9494
"lint:fix": "bun eslint --cache --cache-location ./node_modules/.cache/eslint/.eslint-cache . --ext md,mdx,ts,tsx --fix && bun formatter.js",
9595
"prepare": "husky",
96-
"prettier:check": "prettier --check \"**/*.{json,md,mdx,ts,tsx,yml}\"",
96+
"prettier:check": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check \"**/*.{json,md,mdx,ts,tsx,yml}\"",
9797
"prettier:write": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write \"**/*.{json,md,mdx,ts,tsx,yml}\"",
9898
"serve": "docusaurus serve",
9999
"start": "docusaurus start",

0 commit comments

Comments
 (0)