Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
stylelint-group-selectors
Advanced tools
stylelint plugin to identify the selectors can be grouped as they have same set of properties and values
Identify the selectors, which can be grouped, as they have same set of properties and values.
.a{ display: inline-block;width: 100px;}
.b{display:inline-block;width:100px;}
Above selectors can be grouped like this
.a,.b{display:inline-block;width: 100px;}
npm install stylelint-group-selectors --save-dev
// .stylelintrc
{
"plugins": [
"stylelint-group-selectors"
],
"rules": {
"plugin/stylelint-group-selectors": true,
}
}
true
The following patterns are considered violations:
.b{display:inline-block;color:#111;}
.a{display:inline-block;color:#111;}
.a,.b{display: inline-block;color:#111; }
FAQs
stylelint plugin to identify the selectors can be grouped as they have same set of properties and values
The npm package stylelint-group-selectors receives a total of 4,334 weekly downloads. As such, stylelint-group-selectors popularity was classified as popular.
We found that stylelint-group-selectors 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.