
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
prettier-plugin-csssort
Advanced tools
A Prettier plugin that sorts and groups CSS properties.
Prettier plugins are automatically loaded if installed in the same node_modules
directory as Prettier itself is installed.
Read more about Prettier plugins.
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.
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
Prettier plug that sorts and groups CSS properties.
We found that prettier-plugin-csssort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.