Skip to content

2taesung/stylelint-styled-components-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
}

Releases

No releases published

Packages

No packages published