stylelint-config-recommended (13.0.0)
Published 2026-02-24 14:05:50 +00:00 by atheaadmin
Installation
registry=npm install stylelint-config-recommended@13.0.0"stylelint-config-recommended": "13.0.0"About this package
stylelint-config-recommended
The recommended shareable config for Stylelint.
It turns on most of the Stylelint rules that help you avoid errors.
You can use this as a foundation for your own config, but we suggest most people use our standard config instead which extends this config and adds a few more rules to enforce common conventions.
Installation
npm install stylelint-config-recommended --save-dev
Usage
Set your stylelint config to:
{
"extends": "stylelint-config-recommended"
}
Extending the config
Add a "rules" key to your config, then add your overrides and additions there.
For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, turn off the block-no-empty rule, and add the unit-allowed-list rule:
{
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["extends"]
}
],
"block-no-empty": null,
"unit-allowed-list": ["em", "rem", "s"]
}
}
Changelog
License
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| @stylelint/prettier-config | ^2.0.0 |
| @stylelint/remark-preset | ^4.0.0 |
| eslint | ^8.43.0 |
| eslint-config-stylelint | ^18.0.0 |
| eslint-plugin-jest | ^27.2.1 |
| husky | ^8.0.3 |
| jest | ^29.5.0 |
| lint-staged | ^13.2.2 |
| np | ^8.0.4 |
| npm-run-all | ^4.1.5 |
| prettier | ^2.8.8 |
| remark-cli | ^11.0.0 |
| stylelint | ^15.10.0 |
Peer Dependencies
| ID | Version |
|---|---|
| stylelint | ^15.10.0 |
Keywords
stylelint
stylelint-config
recommended