stylelint-config-recommended
Recommended shareable config for Stylelint
Last updated 3 years ago by ybiquitous .
MIT · Repository · Bugs · Original npm
$ cnpm install stylelint-config-recommended 
SYNC missed versions from official npm registry.

stylelint-config-recommended

NPM version Build Status

The recommended shareable config for Stylelint.

It turns on all the Stylelint rules that help you avoid errors.

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

Installation

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

Usage

Set your stylelint config to:

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

Extending the config

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-allowed-list rule:

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

Changelog

License

Current Tags

  • 9.0.0                                ...           latest (3 years ago)

8 Versions

  • 9.0.0                                ...           3 years ago
  • 7.0.0                                ...           4 years ago
  • 6.0.0-0                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 3.0.0                                ...           6 years ago
  • 1.0.0                                ...           8 years ago
  • 2.2.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org