JavaScript MIT

stylelint-config-recommended

The recommended shareable config for Stylelint

S

stylelint

Dernière activité 11 sept. 2026
stylelint/stylelint-config-recommended

399

étoiles

30

forks

5

issues ouvertes

stylelint

Ce README est souvent en anglais.

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"]
  }
}

Projets similaires

The standard shareable config for Stylelint

JavaScriptstylelint
Sstylelint
1,4 k étoiles109

The recommended shareable SCSS config for Stylelint

JavaScriptlinter-configscssstylelint
Sstylelint-scss
234 étoiles24

ESLint Config for JavaScript Standard Style

TypeScriptdevelopmentecmascriptes6
Sstandard
2,6 k étoiles543