Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 955 Bytes

readme.md

File metadata and controls

19 lines (14 loc) · 955 Bytes

CSS Order Prettier Plugin

npm

A Prettier plugin to sort CSS, SCSS or Less declarations based on their property names.
Using 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 to concentric-css.
  • keepOverrides defaults to true, for a new codebase false is recommended.