Stylelint configuration with support for XCSS via ekscss and an opinionated property order.
Property order defined as:
Note: Very new, seldom used, or poorly supported properties are not included in the groups.
- Position
- Box model & layout
- Typography
- Remaining properties sorted alphabetically
- Add dependencies to your project:
npm install --save-dev @maxmilton/stylelint-config stylelint-config-standard
- Add to your stylelint configuration:
.stylelintrc
:
{
"extends": ["stylelint-config-standard", "@maxmilton/stylelint-config"]
}
This package is based on of the best ideas from:
- https://github.com/ream88/stylelint-config-idiomatic-order
- https://github.com/hudochenkov/stylelint-config-hudochenkov
- https://github.com/constverum/stylelint-config-rational-order
- https://github.com/stormwarning/stylelint-config-recess-order
MIT license. See LICENSE.
© 2024 Max Milton