
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
jss-plugin-props-sort
Advanced tools
JSS plugin that ensures style properties extend each other instead of override
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.
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();
}
postcss-sorting is a PostCSS plugin that automatically sorts CSS properties, similar to jss-plugin-props-sort but for CSS files processed through PostCSS. It offers more customization options for sorting orders and groups.
stylelint-order is a plugin for Stylelint that checks the order of CSS properties. Unlike jss-plugin-props-sort, which automatically sorts properties, stylelint-order is used to lint CSS and warn developers about property order issues.
JSS plugin that ensures style properties extend each other instead of override
See our website jss-plugin-props-sort for more information.
Using npm:
npm install jss-plugin-props-sort
or using yarn:
yarn add jss-plugin-props-sort
FAQs
JSS plugin that ensures style properties extend each other instead of override
The npm package jss-plugin-props-sort receives a total of 1,444,931 weekly downloads. As such, jss-plugin-props-sort popularity was classified as popular.
We found that jss-plugin-props-sort 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.