Socket
Socket
Sign inDemoInstall

stylelint-group-selectors

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-group-selectors

stylelint plugin to identify the selectors can be grouped as they have same set of properties and values


Version published
Weekly downloads
4.5K
decreased by-8.23%
Maintainers
1
Weekly downloads
 
Created
Source

stylelint-group-selectors

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;}

Installation

npm install stylelint-group-selectors --save-dev

Usage

// .stylelintrc
{
  "plugins": [
    "stylelint-group-selectors"
  ],
  "rules": {
    "plugin/stylelint-group-selectors": true,
  }
}

Options

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; }

Keywords

FAQs

Package last updated on 29 Jun 2023

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