Commit d03e2e6e by wangzhihui

fix: 启用stylelint检查并激活lint-staged钩子

启用.stylelint规则对样式文件进行检查,包括scss、less、styl、html、vue、
uvue、css、wxss等格式文件。同时激活lefthook中的lint-staged钩子,
确保代码提交前自动运行代码检查和修复
1 parent e6187f56
Pipeline #83 for d03e2e6e failed in 0 seconds
......@@ -3,5 +3,5 @@ export default {
"*.{js,jsx,ts,tsx,vue,uvue,uts,md}": "pnpm eslint --cache --fix",
"package.json": "pnpm eslint --cache --fix",
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": "pnpm eslint --cache --fix",
// "*.{scss,less,styl,html,vue,uvue,css,wxss}":"pnpm stylelint --fix --allow-empty-input",
"*.{scss,less,styl,html,vue,uvue,css,wxss}":"pnpm stylelint --fix --allow-empty-input",
};
......@@ -3,8 +3,8 @@ pre-commit:
commands:
code-workspace:
run: pnpm vsh code-workspace --auto-commit
# lint-staged:
# run: pnpm lint-staged
lint-staged:
run: pnpm lint-staged
post-merge:
commands:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!