Skip to content
main
Switch branches/tags
Code

Latest commit

Bumps [np](https://github.com/sindresorhus/np) from 7.5.0 to 7.6.0.
- [Release notes](https://github.com/sindresorhus/np/releases)
- [Commits](sindresorhus/np@v7.5.0...v7.6.0)

---
updated-dependencies:
- dependency-name: np
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e69cd9e

Git stats

Files

Permalink
Failed to load latest commit information.

stylelint-config-recommended

NPM version Build Status

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

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