1.0.1 • Published 1 year ago
@lxchapu/stylelint-config-vue v1.0.1
stylelint-config-vue
Install
pnpm add @lxchapu/stylelint-config-vue -D
Usage
在你的 Stylelint 配置文件中添加以下内容:
{
extends: ["@lxchapu/stylelint-config-vue"]
}
在 package.json
中添加脚本:
{
"lint:style": "stylelint --fix **/*.{css,scss,vue,html}"
}
Auto lint on save
在 VSCode 工作区中添加以下配置:
{
"stylelint.validate": ["css", "scss", "vue", "html"],
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
}
}
Lincense
MIT