
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
stylelint-semantic-groups
Advanced tools
Opinionated group based SCSS property ordering for better maintainability
and perception
.
📖 Theory behind: Harry Potter and the Order of CSS
yarn add stylelint-order stylelint-semantic-groups
// .stylelintrc.js
const { propertyOrdering, selectorOrdering } = require('stylelint-semantic-groups');
module.exports = {
plugins: ['stylelint-order'],
rules: {
'order/order': selectorOrdering, // to fine-tune configuration use selectorOrderFactory
'order/properties-order': propertyOrdering,
},
};
// .stylelintrc.js
const { propertyOrdering } = require('stylelint-semantic-groups');
module.exports = {
plugins: ['stylelint-order'],
rules: {
/* optional by recommended */
'order/order': [
'custom-properties',
'dollar-variables',
'declarations',
'at-rules', // <-- important, `@media` should go before `&:pseudo`
'rules',
],
/* the actual usage of this package */
'order/properties-order': propertyOrdering,
},
};
Stylelint config that sorts related property declarations by grouping together following the order:
order/order
grid-area
. Note: in the current implementation it is mostly about grids and grids only.order/order
order/order
.declaration-order {
--color: #fff;
/* Positioning */
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
/* Box Model */ /* white space between groups is ENFORCED */
display: block;
float: right;
width: 100px;
height: 100px;
margin: 10px;
padding: 10px;
/* Typography */
color: #888;
font: normal 16px Helvetica, sans-serif;
line-height: 1.3;
text-align: center;
/* Visual */
background-color: #eee;
border: 1px solid #888;
border-radius: 4px;
opacity: 1;
/* Animation */
transition: all 1s;
/* Misc */
user-select: none;
}
MIT
FAQs
Semantic CSS groups ordering
The npm package stylelint-semantic-groups receives a total of 9,834 weekly downloads. As such, stylelint-semantic-groups popularity was classified as popular.
We found that stylelint-semantic-groups 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.