Find Similar Packages for stylelint-config-recess-order
stylelint-config-recess-orderSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on stylelint-config-recess-order's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of stylelint-config-recess-order](https://npm-compare.com/img/npm-trend/THREE_YEARS/stylelint-config-recess-order.png)](https://npm-compare.com/stylelint-config-recess-order#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
stylelint-config-recess-order438,834
36323.9 kB5a month agoISC
README for stylelint-config-recess-order

Recess* Property Order StyleLint

npm version npm downloads github issues

A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.

*With some modifications & additions for modern properties.

Usage

  1. Add stylelint, stylelint-order, and this package to your project:
    npm install --save-dev stylelint stylelint-order stylelint-config-recess-order
    
  2. Configure your Stylelint configuration file to extend this package:
    module.exports = {
    	extends: ['stylelint-config-recess-order'],
    	rules: {
    		// Add overrides and additional rules here
    	},
    }
    

Advanced

The default setup applies only the 'order/properties-order' rule with the various property groups. If you need to configure other options for this rule, the groups can be imported separately and the rule configured to your needs.

const propertyGroups = require('stylelint-config-recess-order/groups')

module.exports = {
	extends: [], // Do not extend the config here.
	rules: {
		// Configure the rule manually.
		'order/properties-order': propertyGroups.map((group) => ({
			...group,
			emptyLineBefore: 'always',
			noEmptyLineBetween: true,
		})),
	},
}

References

@mdo on CSS Property Order