stylelint-config-firefoxic
The shareable config for Stylelint from firefoxic.
Use it as is or as a foundation for your own config.
To see the rules that this config uses, please read the config itself.
Installation
npm add -D stylelint-config-firefoxic
Usage
Set your stylelint
config to:
{
"extends": "stylelint-config-firefoxic"
}
Extending the config
Add a "rules"
key to your config, then add your overrides and additions there.
You can turn off rules by setting its value to null
. For example:
{
"extends": "stylelint-config-firefoxic",
"rules": {
"selector-not-notation": null
}
}
Or lower the severity of a rule to a warning using the severity
secondary option. For example:
{
"extends": "stylelint-config-firefoxic",
"rules": {
"property-no-vendor-prefix": [
true,
{
"severity": "warning"
}
]
}
}
If your styles syntax is different from CSS, then install the package of the syntax you need, specify it at the beginning of your configuration file and add or override some rules:
{
"customSyntax": "postcss-scss",
"extends": "stylelint-config-firefoxic",
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"mixin",
"include"
]
}
]
}
}
Useful links