mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
set up commit hook
This commit is contained in:
parent
a9e311af3b
commit
02d3452100
2 changed files with 7 additions and 2 deletions
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
|
|
@ -0,0 +1 @@
|
|||
npx lint-staged
|
||||
|
|
@ -8,7 +8,8 @@
|
|||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"lint": "eslint",
|
||||
"astro": "astro"
|
||||
"astro": "astro",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/react": "^3.3.1",
|
||||
|
|
@ -45,5 +46,8 @@
|
|||
"lint-staged": "^15.2.2",
|
||||
"typescript": "^5.4.5",
|
||||
"typescript-eslint": "^7.9.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,mjs,ts,tsx,mts,astro}": "eslint --fix"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue