chore(styles): 为项目添加开发依赖

- 添加lint-staged用于创建pre-commithook
This commit is contained in:
2025-09-17 16:05:14 +08:00
parent 359aaec8a9
commit ba16879594
4 changed files with 199 additions and 0 deletions

8
lint-staged.config.mjs Normal file
View File

@ -0,0 +1,8 @@
/**
* @filename: lint-staged.config.mjs
* @type {import('lint-staged').Configuration}
*/
export default {
'*.{js,jsx,mjs,ts,tsx}': ['prettier --write'],
'*.{json,md,css,scss,html}': ['prettier --write'],
};