Skip to content

typhoon41/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@typhoon41/stylelint-config

Strict, shareable config for scss projects using stylelint.

To see the rules that this config uses, please read the config itself.

Installation

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

Usage

Just set your stylelint config to:

{
  "extends": "@typhoon41/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, change the indentation to tabs, turn off the number-leading-zero rule,and add the unit-allowed-list rule:

{
  "extends": "stylelint-config-standard",
  "rules": {
    "at-rule-no-unknown": [
      true,
      {
        "ignoreAtRules": ["extends", "ignores"]
      }
    ],
    "indentation": "tab",
    "number-leading-zero": null,
    "unit-allowed-list": ["em", "rem", "s"]
  }
}

License

Apache-2 © Nikola Dragićević

About

Detailed and strict configuration for TS/VUE projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published