refactor: 悦码项目重构
This commit is contained in:
8
lint-staged.config.mjs
Normal file
8
lint-staged.config.mjs
Normal file
@@ -0,0 +1,8 @@
|
||||
/** @type {import('lint-staged').Config} */
|
||||
export default {
|
||||
'*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'],
|
||||
'*.json': ['prettier --write'],
|
||||
'*.vue': ['eslint --fix', 'prettier --write', 'stylelint --fix --allow-empty-input'],
|
||||
'*.{scss,less,styl,html}': ['stylelint --fix --allow-empty-input', 'prettier --write'],
|
||||
'*.md': ['prettier --write'],
|
||||
};
|
||||
Reference in New Issue
Block a user