The modern CSS shareable config for Stylelint.
It builds on Stylelint's standard config and turns on additional lint rules to enforce modern CSS features and conventions.
It works alongside the textual rules and examples at moderncss.ai.
npm install stylelint-config-modern --save-dev(or bun, pnpm etc.)
Add it to your stylelint config:
export default {
"extends": [
"stylelint-config-standard",
+ "stylelint-config-modern"
],
}