Skip to content

Commit 9d9714d

Browse files
committed
chore: use pnpm lint-staged in precommit
1 parent d3215ee commit 9d9714d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,25 +148,25 @@
148148
"node": "24"
149149
},
150150
"simple-git-hooks": {
151-
"pre-commit": "./node_modules/.bin/lint-staged"
151+
"pre-commit": "pnpm lint-staged"
152152
},
153153
"lint-staged": {
154154
"i18n/locales/*": [
155155
"node ./lunaria/lunaria.ts",
156-
"./node_modules/.bin/oxfmt lunaria/files/",
156+
"pnpm oxfmt lunaria/files/",
157157
"git add lunaria/files/",
158158
"node scripts/generate-i18n-schema.ts",
159-
"./node_modules/.bin/oxfmt i18n/schema.json",
159+
"pnpm oxfmt i18n/schema.json",
160160
"git add i18n/schema.json"
161161
],
162162
"*.{js,ts,mjs,cjs,vue}": [
163-
"./node_modules/.bin/oxlint --fix"
163+
"pnpm oxlint --fix"
164164
],
165165
"*.vue": [
166-
"node scripts/unocss-checker.ts"
166+
"pnpm lint:css"
167167
],
168168
"*.{js,ts,mjs,cjs,vue,json,yml,md,html,css}": [
169-
"./node_modules/.bin/oxfmt"
169+
"pnpm oxfmt"
170170
]
171171
},
172172
"packageManager": "pnpm@10.30.1"

0 commit comments

Comments
 (0)