stylelint-config-itgalaxy
itgalaxy org's shareable config for stylelint (
css
andscss
).
For consistent css
and scss
code across itgalaxy's repositories.
Installation
npm install stylelint-config-itgalaxy
Usage
If you've installed stylelint-config-itgalaxy
locally within your project,
just set your stylelint
config to:
For css
use:
For scss
use:
If you've globally installed stylelint-config-itgalaxy
using the -g
flag,
then you'll need to use the absolute path to stylelint-config-itgalaxy
in your
config e.g.
Extending the config
Simply add a "rules"
key to your config, then add your overrides and additions
there.
For example, to change the indentation
to tabs, turn off the
number-leading-zero
rule, change the property-no-unknown
rule to use its
ignoreAtRules
option and add the unit-whitelist
rule: