Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-declaration-block-no-ignored-properties

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-declaration-block-no-ignored-properties

Disallow property values that are ignored due to another property value in the same rule.

  • 2.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
136K
increased by2.46%
Maintainers
1
Weekly downloads
 
Created

What is stylelint-declaration-block-no-ignored-properties?

The stylelint-declaration-block-no-ignored-properties package is a plugin for Stylelint that helps you avoid using CSS properties that are ignored due to other properties in the same declaration block. This ensures cleaner and more efficient CSS by preventing redundant or conflicting styles.

What are stylelint-declaration-block-no-ignored-properties's main functionalities?

Detect ignored properties

This feature detects when a CSS property is ignored due to another property in the same declaration block. In the example, the 'width' property is ignored because 'display' is set to 'inline'.

/* Example CSS */
.example {
  display: inline;
  width: 100px; /* This will be flagged because 'width' is ignored when 'display' is 'inline' */
}

Stylelint integration

This feature shows how to integrate the plugin with Stylelint by adding it to the plugins array and enabling the rule in the Stylelint configuration file.

/* .stylelintrc.json */
{
  "plugins": [
    "stylelint-declaration-block-no-ignored-properties"
  ],
  "rules": {
    "plugin/declaration-block-no-ignored-properties": true
  }
}

Other packages similar to stylelint-declaration-block-no-ignored-properties

Keywords

FAQs

Package last updated on 26 Dec 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