chore: 添加lint-staged
This commit is contained in:
8
lint-staged.config.js
Normal file
8
lint-staged.config.js
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @filename: lint-staged.config.js
|
||||
* @type {import('lint-staged').Configuration}
|
||||
*/
|
||||
export default {
|
||||
'*.{ts,tsx,svelte,js,jsx}': ['eslint --fix'],
|
||||
'*.{css,scss,md,json,yaml,yml}': ['prettier --write']
|
||||
};
|
||||
Reference in New Issue
Block a user