This stylelint config contains rules specific to how we write our CSS at meltmedia. It's flexible enough to use for most projects, with rules used mostly to catch common errors, enforce explicit declarations, and ensure best practices. The ruleset was created by the HTML & CSS Guidelines team, please reach out with any suggestions for rules or feedback on your usage.
To see the rules that this config uses, please read the config itself.
npm install github:meltmedia/stylelint-config-meltmedia --save-dev
Create a .stylelintrc
file at the base of your project:
{
"extends": "stylelint-config-meltmedia"
}
Simply add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the indentation
to tabs:
{
"extends": "stylelint-config-meltmedia",
"rules": {
"indentation": "tab"
}
}