Stylelint basic configuration for personal projects.
npm install --save-dev stylelint-config-chema22r
This Stylelint config adds the rules modularly, depending on the needs of the project. Those are the possible extensions and their requirements:
Extension ID | Requirements (plugins) |
---|---|
stylelint-config-chema22r | stylelint-config-standard stylelint-config-sass-guidelines |
All the extensions are compatible and can be combined.
All the extensions include a default configuration that can be overwritten (parserOptions, rules, settings, etc.).
All the extensions requirements must be installed or some of the imported rules might not work. E.g.: the extension stylelint-config-chema22r imports a custom set of rules based on the extensions
stylelint-config-standard
andstylelint-config-sass-guidelines
so in this case, not installing the plugin stylelint-config-standard or stylelint-config-sass-guidelines will disable all the rules related to the corresponding plugin, but the stylelint rules will still be enabled.
{
"extends": [
"stylelint-config-chema22r"
],
"ignoreFiles": [
"**/*.html",
"**/*.js",
"**/*.jsx",
"**/*.json"
],
"rules": {}
}