1.1.1 • Published 2 years ago
@pinos/stylelint-config v1.1.1
stylelint-config
Install
pnpm add stylelint postcss-html postcss @pinos/stylelint-config -Dpostcss >=8.0.0
使用
- create
stylelint.config.cjsfile in the project root directory - config
stylelint.config.cjsfile
module.exports = {
extends: '@pinos/stylelint-config'
}With lint-staged
add config in the package.json;
{
"lint-staged": {
"src/**/*.{css,scss}": [
"stylelint --fix --max-warnings 0"
]
}
}