@worldia/stylelint-config
This package includes the shareable stylelint configuration used at Worldia.
Installation
$ yarn add @worldia/stylelint-config -D
or if you use npm
$ npm install @worldia/stylelint-config --save-dev
Usage
Create a .stylelintrc file with the following basic configuration:
{
"extends": "@worldia/stylelint-config"
}
Extending the config
Simply add a "rules"
key to your config and add your overrides there.
For example, to change the indentation
to tabs and turn off the number-leading-zero
rule:
{
"extends": "@worldia/stylelint-config",
"rules": {
"indentation": "tab",
"number-leading-zero": null
}
}