stylelint-config-recommended
Recommended shareable config for Stylelint
Last updated a month ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 most of the Stylelint rules that help you avoid errors.

You can use this as a foundation for your own config, but we suggest most people use our standard config instead which extends this config and adds a few more rules to enforce common conventions.

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

  • 19.0.0                                ...           latest (a month ago)

27 Versions

  • 19.0.0                                ...           a month ago
  • 19.0.0-next.0                                ...           a month ago
  • 18.0.0                                ...           10 months ago
  • 17.0.0                                ...           a year ago
  • 16.0.0                                ...           2 years ago
  • 15.0.0                                ...           2 years ago
  • 14.0.1                                ...           2 years ago
  • 14.0.0                                ...           3 years ago
  • 13.0.0                                ...           3 years ago
  • 12.0.0                                ...           4 years ago
  • 11.0.0                                ...           4 years ago
  • 10.0.1                                ...           4 years ago
  • 10.0.0                                ...           4 years ago
  • 9.0.0                                ...           4 years ago
  • 8.0.0                                ...           4 years ago
  • 7.0.0                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 6.0.0-0                                ...           5 years ago
  • 5.0.0                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 3.0.0                                ...           7 years ago
  • 2.2.0                                ...           8 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Downloads
Total 52
Today 0
This Week 2
This Month 26
Last Day 0
Last Week 20
Last Month 23
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE