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

stylelint-config-sugarss-recommended

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-sugarss-recommended

Recommended shareable config of SugarSS for stylelint

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
decreased by-28.24%
Maintainers
1
Weekly downloads
 
Created
Source

The recommended shareable config of SugarSS for stylelint.

It turns on all the possible errors rules within stylelint.

Use it as is or as a foundation for your own config.

Installation

npm

npm install stylelint-config-sugarss-recommended --save-dev

yarn

yarn add stylelint-config-sugarss-recommended --dev

Usage

If you've installed stylelint-config-sugarss-recommended locally within your project, just set your stylelint config to:

{
  "extends": "stylelint-config-sugarss-recommended"
}

If you've globally installed stylelint-config-sugarss-recommended using the -g flag, then you'll need to use the absolute path to stylelint-config-sugarss-recommended in your config e.g.

{
  "extends": "/absolute/path/to/stylelint-config-sugarss-recommended"
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, turn off the block-no-empty rule, and add the unit-whitelist rule:

{
  "extends": "stylelint-config-sugarss-recommended",
  "rules": {
    "at-rule-no-unknown": [ true, {
      "ignoreAtRules": [
        "extends"
      ]
    }],
    "block-no-empty": null,
    "unit-whitelist": ["em", "rem", "s"]
  }
}

Changelog

License

Keywords

FAQs

Package last updated on 31 May 2019

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