Skip to content

Commit b5a87e6

Browse files
committed
build: cache eslint and prettier
1 parent f4404a0 commit b5a87e6

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
@@ -91,10 +91,10 @@
9191
"deploy": "docusaurus deploy",
9292
"fix": "bun run prettier:write && bun run lint:fix",
9393
"lint:check": "bun eslint . --ext md,mdx,ts,tsx",
94-
"lint:fix": "bun eslint . --ext md,mdx,ts,tsx --fix && bun formatter.js",
94+
"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",
9696
"prettier:check": "prettier --check \"**/*.{json,md,mdx,ts,tsx,yml}\"",
97-
"prettier:write": "prettier --write \"**/*.{json,md,mdx,ts,tsx,yml}\"",
97+
"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",
100100
"submodule-reset": "git submodule deinit --all -f && git submodule update --init --recursive",

0 commit comments

Comments
 (0)