Stylelint order config with comprehensive CSS properties ordering.
npm install taks-stylelint-orderComprehensive CSS properties ordering configuration for stylelint-order.
``bash`
npm install --save-dev taks-stylelint-order stylelint stylelint-order
Add this config to your stylelint configuration:
`js``
{
"plugins": ["stylelint-order"],
"extends": ["taks-stylelint-order"]
}
The properties are ordered in the following categories:
1. Cascading and Inheritance
2. Generated Content
3. Positioned Layout
4. Anchor Positioning
5. Containment Module
6. Display
7. Grid Layout
8. Flexible Box
9. Item Flow Controls
10. Box Alignment Module
... (and more)
For the complete order, please check the index.js file.
- Node.js 14+
- stylelint 14+
- stylelint-order 6+
MIT © TAK