stylefmt is a tool that automatically formats CSS according to stylelint rules. stylefmt'd code is easier to write. Never worry about minor formatting concerns while hacking away. Easier to read, when all code looks the same you need not mentally convert others' formatting style into something you can understand. Easier to maintain, mechanical changes to the source don't cause unrelated changes to the file's formatting; diffs show only the real changes. Uncontroversial, never have a debate about spacing or brace position ever again! If you are using stylefmt with stylelint configuration to format according to its rules, you can now use stylelint's, fix option (from v7.11.0) to auto fix. On the other hand, prettier supports to format not only JavaScript but also CSS, SCSS, and Less code.
Features
- Supports the latest CSS syntax
- Including custom properties, range context for media features, calc() and nesting
- Understands CSS-like syntaxes
- Stylefmt is powered by PostCSS, so it understands any syntax that PostCSS can parse, including SCSS
- Works well with stylelint
- Stylelint is a mighty, modern CSS linter. stylefmt can understand the formatting rules specified in your stylelint configuration file (.stylelintrc)