Skip to content

cmalven/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Malven Co. Stylelint Config

The Malven Co. shareable config for stylelint.

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

Installation

npm install stylelint @malven/stylelint-config --save-dev

Usage

If you've installed @malven/stylelint-config locally within your project, just set your stylelint config to:

{
  "extends": "@malven/stylelint-config"
}

Extending the config

Simply 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-whitelist rule:

{
  "extends": "@malven/stylelint-config",
  "rules": {
    "at-rule-no-unknown": [ true, {
      "ignoreAtRules": [
        "extends"
      ]
    }],
    "block-no-empty": null,
    "unit-whitelist": ["em", "rem", "s"]
  }
}