Socket
Socket
Sign inDemoInstall

stylelint-config-recommended-less

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-recommended-less


Version published
Weekly downloads
14K
increased by3.01%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

The recommended shareable Less config 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

First install Stylelint and stylelint-less packages

npm install stylelint stylelint-less --save-dev

and then install this config

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

Usage

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

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

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

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

Extending the config

You can add rules key to your config there you can override and add new rules

{
  "extends": "stylelint-config-recommended-less",
  "rules": {
    "block-no-empty": null,
    "unit-whitelist": ["em", "rem", "s"]
  }
}

Keywords

FAQs

Last updated on 02 Jul 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc