
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
stylelint-use-nesting
Advanced tools
Stylelint Use Nesting is a stylelint rule to enforce nesting when it is possible in CSS.
Add stylelint and Stylelint Use Nesting to your project.
npm install stylelint stylelint-use-nesting --save-dev
Add Stylelint Use Nesting to your stylelint configuration.
{
"plugins": [
"stylelint-use-nesting"
],
"rules": {
"csstools/stylelint-use-nesting": "always" || "ignore"
}
}
If the first option is "always"
or true
, then Stylelint Use Nesting
requires all nodes to be linted, and the following patterns are not
considered violations:
.example {
color: blue;
&:hover {
color: rebeccapurple;
}
}
While the following patterns are considered violations:
.example {
color: blue;
}
.example:hover {
color: rebeccapurple;
}
If the first option is "ignore"
or null
, then Stylelint Use Nesting does
nothing.
1.0.0 (November 25, 2018)
FAQs
Enforce nesting when it is possible in CSS
The npm package stylelint-use-nesting receives a total of 16,955 weekly downloads. As such, stylelint-use-nesting popularity was classified as popular.
We found that stylelint-use-nesting demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.