- install husky,lint-staged
- set
"husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{}": [ "css-checker" ] }
- 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
- output with color, chalk