@maxmilton/stylelint-config
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
Installation
- Add dependencies to your project:
npm install --save-dev @maxmilton/stylelint-config stylelint-config-standard
- Add to your stylelint configuration:
pacakge.json
:
{
"stylelint": {
"extends": ["stylelint-config-standard", "@maxmilton/stylelint-config"]
}
}
Prior Art
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
License
MIT license. See LICENSE.
© 2023 Max Milton