Socket
Book a DemoInstallSign in
Socket

prettier-plugin-csssort

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-csssort

Prettier plug that sorts and groups CSS properties.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

prettier-plugin-csssort

License npm version

A Prettier plugin that sorts and groups CSS properties.

Installation

Prettier plugins are automatically loaded if installed in the same node_modules directory as Prettier itself is installed.

Read more about Prettier plugins.

FAQ

  • How are the properties sorted/grouped?

    lib/config.js defines how properties are sorted and grouped. The configuration was inherited from CSSComb.

  • Can I change the way properties are sorted/grouped?

    Not at this moment. Feel free to open a pull-request.

Warning

This plugin utilizes PostCSS and the postcss-sorting plugin to do the heavy lifting. In essence, this Prettier plugin is a very thin wrapper over the afformentioned tools.

Prettier's plugin infrastructure is still in beta and under construction. Once stabilized, it might be better to implement sorting and grouping directly in this plugin. This should be more efficient since Prettier already parses the CSS into a AST using PostCSS under the hood.

FAQs

Package last updated on 02 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.