stylelint-styled-components-order
v1.0.6
Published
stylelint order config for styled components
Downloads
42
Maintainers
Readme
stylelint-styled-components-order
This is stylelint configuration validates the order of CSS properties built to support styled-components. And although it is based on Concentric CSS, we centered on Layout, Box, Background, Font and Animation, which we use frequently, and put other properties at the bottom. If you have any comments, we will consider them and improve them.
The configuration works with stylelint --fix
Installation
npm install --save-dev stylelint-styled-components-order
Recommendation Usage
Add dev dependency stylelint-config-standard
and create stylelint.config.js
. then, just 3 line. done.
npm install --save-dev stylelint-config-standard
//stylelint.config.js
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-styled-components-order'],
};
Usage
Add this configuration to the end of your extends
array inside .stylelintrc
or stylelint.config.js
//.stylelintrc
{
"extends": [
// ...some other shareable Stylelint configuration
"stylelint-styled-components-order"
],
"rules": {
// ...your own custom rules and overrides
}
}
//stylelint.config.js
module.exports = {
"extends": [
// ...some other shareable Stylelint configuration
"stylelint-styled-components-order"
],
"rules": {
// ...your own custom rules and overrides
}
}