JSPM

@azabraao/prettier-plugin-css-order

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48
  • Score
    100M100P100Q85527F
  • License ISC

Sort CSS declarations in a certain order.

Package Exports

  • @azabraao/prettier-plugin-css-order
  • @azabraao/prettier-plugin-css-order/src/main.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@azabraao/prettier-plugin-css-order) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CSS Order Prettier Plugin

LGTM Grade npm

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 to concentric-css.
  • keepOverrides defaults to true, for a new codebase false is recommended.