New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-plugin-property

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-plugin-property

Stylelint plugin for managing arbitrary properties. Includes Less and Sass support.

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.9K
decreased by-6.49%
Maintainers
1
Weekly downloads
 
Created
Source

Stylelint Plugin Property

tests

Stylelint plugin for managing arbitrary properties.

Rules

Go to each rule's page (click on the name below) to see specific details.

Ruleauto-fix
plugin-property/block-propertiesno ✗

Rule Options

  • Object input with exceptions. At least one of properties or detailedProperties must be defined.

    {
        "mode": "block",
        // optional: list of property names that are outright blocked
        properties: ['float'],
        // optional: list of properties with exceptions
        detailedProperties: [
            {
                property: 'font-family',
                // For the exception to pass on any given occurrence, "selectors" must match one of
                // the selectors for the rule in question AND the value assigned to the property
                // must match at least one of the values below.
                // This is essentially an AND operation. For the equivalent OR operation, add more
                // entries to the detailedProperties array for the same property name.
                exceptions: {
                    values: ['inherit', 'unset'],
                    selectors: ['input', 'select']
                }
            }
        ],
        // optional input
        // these use glob matching with globstar turned ON
        "fileExceptions": [
            "**/*colors.less", // ignores any files ending in colors.less in any directory
            "*colors.less" // ignore files ending in colors.less only in the current directory
        ],
        // optional input
        // these use glob matching with globstar turned OFF
        "lineExceptions": [
            "*colors*", // ignores all lines that include the word colors
            "@import 'colors'" // ignores all lines that are exactly this string (don't include semicolons)
        ],
    }
    
  • Everywhere in properties or detailedProperties where string is allowed, so is RegExp.

Keywords

FAQs

Package last updated on 27 Oct 2021

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