@azabraao/prettier-plugin-css-order
v1.3.0
Published
Sort CSS declarations in a certain order.
Downloads
639
Maintainers
Readme
CSS Order Prettier Plugin
A Prettier plugin to sort CSS, SCSS or Less declarations based on their property names.
Using @azabraao/css-declaration-sorter under the hood.
Usage
Following the Prettier plugin guidelines, this package depends on Prettier as a peer dependency:npm install postcss prettier-plugin-css-order --save-dev
After installation Prettier should automatically use this plugin.
Configuration
This plugin adds two configurable keys to Prettier:
order
defaults toconcentric-css
.keepOverrides
defaults totrue
, for a new codebasefalse
is recommended.