1.0.1 • Published 4 years ago
css-checker v1.0.1
Usage
- install husky,lint-staged
- set
"husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{}": [ "css-checker" ] }
function flow
- match all the paths of CSS
- to enhance:adapt to Sass、Less
- read the css file
- PostCss: transfer to AST
- check the css
- to enhance: check the type
- to enhance: provide the setting of input
to improve
- output with color, chalk