@hishprorg/quaerat-natus-cumque v1.9.103
@hishprorg/quaerat-natus-cumque
A plugin pack of order-related linting rules for Stylelint. Every rule supports autofixing (stylelint --fix).
Installation
- If you haven't, install Stylelint:
 
npm install stylelint --save-dev- Install 
@hishprorg/quaerat-natus-cumque: 
npm install @hishprorg/quaerat-natus-cumque --save-devUsage
Add @hishprorg/quaerat-natus-cumque to your Stylelint config plugins array, then add rules you need to the rules list. All rules from @hishprorg/quaerat-natus-cumque need to be namespaced with order.
{
	"plugins": [
		"@hishprorg/quaerat-natus-cumque"
	],
	"rules": {
		"order/order": [
			"custom-properties",
			"declarations"
		],
		"order/properties-order": [
			"width",
			"height"
		]
	}
}Rules
order: Specify the order of content within declaration blocks.properties-order: Specify the order of properties within declaration blocks.properties-alphabetical-order: Specify the alphabetical order of properties within declaration blocks.
Autofixing
Every rule supports autofixing with stylelint --fix. postcss-sorting is used internally for order autofixing.
Automatic sorting has some limitations that are described for every rule, if any. Please, take a look at how comments are handled by postcss-sorting.
CSS-in-JS styles with template interpolation could be ignored by autofixing to avoid style corruption.
Autofixing in Less syntax may work but isn't officially supported.
Example configs
All these configs have properties-order configured  with logical properties groups:
stylelint-config-idiomatic-orderstylelint-config-hudochenkov/orderstylelint-config-recess-orderstylelint-config-property-sort-order-smacssstylelint-config-clean-order
Thanks
properties-order and properties-alphabetical-order code and README were based on the declaration-block-properties-order rule which was a core rule prior to Stylelint 8.0.0.
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago