stylelint-config-cumul8
v2.1.57
Published
Cumul8 shareable config for stylelint
Downloads
25
Readme
stylelint-config-cumul8
Cumul8 shareable config for stylelint.
Configuration rules to ensure your CSS is compliant with Cumul8's CSS Coding Standards
Installation
yarn add -D stylelint-config-cumul8
Usage
NOTE:
stylelint-config-cumul8
comes with its ownstylelint-cumul8
bin tool so that you don't need to installstylelint
as a peerDependency. All the necessary dependencies are bundled together for you.
If you've installed stylelint-config-cumul8
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-cumul8"
}
If you've globally installed stylelint-config-cumul8
using the -g
flag, then you'll need to use the absolute path to stylelint-config-cumul8
in your config:
{
"extends": "/absolute/path/to/stylelint-config-cumul8"
}
Extending the config
Simply add a "rules"
key to your config and add your overrides there.
For example, to change the indentation
to four spaces and turn off the number-leading-zero
rule:
{
"extends": "stylelint-config-cumul8",
"rules": {
"indentation": 4,
"number-leading-zero": null
}
}