prettier-style
prettier-style is a fool-like formatted styles tool, Support for any style of text content.
Features
- Automatic sorting css declaration. use css-declaration-sorter. css-declaration-sorter
- Detection style specification. Use stylelint. stylelint
- Automatic repair style by stylelint rules.
Quick Start
Once you have configured stylelint (e.g. you have a .stylelintrc file), start with the following code. You will find additional configuration options below.
npm install prettier-style -Dprettier-style ./*.css --output=./
Options
output
Output file folder path after formatting.skip-lint
Skip detection style specification.
Example
Input
Output
Recommended ways
lint-staged
use