No Plugins; Monolithic

    stylelint-config-recommended

    8.0.0 • Public • Published

    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

    Install

    npm i stylelint-config-recommended

    DownloadsWeekly Downloads

    2,575,347

    Version

    8.0.0

    License

    MIT

    Unpacked Size

    5.39 kB

    Total Files

    4

    Last publish

    Collaborators

    • ntwb
    • jeddy3
    • hudochenkov
    • ybiquitous