@considonet/stylelint-config-order
v1.0.1
Published
Default stylelint ruleset for CSS rule ordering in ConsidoNet projects
Downloads
1,181
Readme
@considonet/stylelint-config-order
Default
stylelint
profile to handle properties ordering in CSS stylesheets for ConsidoNet projects.
Rules
- Inspired by Idiomatic CSS declaration order.
- Requires
content
property to go first (if set).
Installation
Using npm:
npm install --save-dev @considonet/stylelint-config-order
or using yarn:
yarn add @considonet/stylelint-config-order --dev
Usage
In your .stylelintrc.js file extend your config:
{
"extends": "@considonet/stylelint-config-order"
}
Usage with other configs
This config contains only rules for properties ordering and probably you don't want to use it standalone.
We recommend to use @considonet/stylelint-config-order
with at least @considonet/stylelint-config-scss
or any other general ruleset.
See popular stylelint
configs for more inspirations.
Example usage with other our packages:
{
"extends": [
"@considonet/stylelint-config-bem",
"@considonet/stylelint-config-scss",
"@considonet/stylelint-config-order"
]
}
You can also use our default preset which includes this configuration - @considonet/stylelint-config-default
.