Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-plugin-props-sort

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-plugin-props-sort

JSS plugin that ensures style properties extend each other instead of override

  • 10.9.1-alpha.2
  • next
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is jss-plugin-props-sort?

The jss-plugin-props-sort npm package is a plugin for JSS (JavaScript Style Sheets) that allows for sorting CSS properties in a predefined order. This can help in maintaining a consistent style in the stylesheet code, making it easier to read and manage.

What are jss-plugin-props-sort's main functionalities?

Sorting CSS properties

This feature allows developers to automatically sort CSS properties in their JSS stylesheets. The code sample demonstrates how to create a stylesheet with unsorted properties and apply the jss-plugin-props-sort to sort them according to a specific order.

{
  jss.createStyleSheet({
    button: {
      color: 'blue',
      margin: 5,
      background: 'red',
      border: '1px solid black'
    }
  }, {
    plugins: [jssPluginPropsSort()]
  }).attach();
}

Other packages similar to jss-plugin-props-sort

Keywords

FAQs

Package last updated on 24 Apr 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc