@4so-fourseasons/stylelint-config-sane-order 中文文档教程
stylelint-config-sane-order
Installation
npm i -D @4so-fourseasons/stylelint-config-sane-order
Usage
此配置已经扩展了 标准配置 只需在 stylelint.config.js
中扩展 stylelint-config-sane-order
:
module.exports = {
'extends': [
'@4so-fourseasons/stylelint-config-sane-order'
],
...
}
Enforced property order
/**
* Multi-line comment
*/
.selector {
// Single line comment
// Sass extend
@extend .svg-icon__chat--orange-peel;
@extend .svg-icon__chat--orange-peel-dims;
// Sass include
@include clearfix;
// Content for pseudo elements
content: "";
// Layout
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
float: left;
z-index: 100;
visibility: visible;
// Flex, when "display: flex;"
flex-direction: row;
flex-wrap: wrap;
// Box model
box-sizing: border-box;
margin: 20px;
border: 1px solid green;
padding: 5px;
width: 100px;
min-width: 50px;
max-width: 150px;
height: 100px;
min-height: 50px;
max-height: 150px;
// Visual
background: #fff;
color: #444;
box-shadow: 10px 10px 5px 0 rgba(0, 0, 0, 0.75);
opacity: 1;
// Typography
font: normal 1rem "MySuperAwesomeFont-Regular", sans-serif;
text-align: center;
// Misc in alphabetical order
cursor: pointer;
overflow: hidden;
transition: all 0.3s;
...
}
stylelint-config-sane-order
Installation
npm i -D @4so-fourseasons/stylelint-config-sane-order
Usage
This configuration already extends the standard configuration Just extend stylelint-config-sane-order
inside your stylelint.config.js
:
module.exports = {
'extends': [
'@4so-fourseasons/stylelint-config-sane-order'
],
...
}
Enforced property order
/**
* Multi-line comment
*/
.selector {
// Single line comment
// Sass extend
@extend .svg-icon__chat--orange-peel;
@extend .svg-icon__chat--orange-peel-dims;
// Sass include
@include clearfix;
// Content for pseudo elements
content: "";
// Layout
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
float: left;
z-index: 100;
visibility: visible;
// Flex, when "display: flex;"
flex-direction: row;
flex-wrap: wrap;
// Box model
box-sizing: border-box;
margin: 20px;
border: 1px solid green;
padding: 5px;
width: 100px;
min-width: 50px;
max-width: 150px;
height: 100px;
min-height: 50px;
max-height: 150px;
// Visual
background: #fff;
color: #444;
box-shadow: 10px 10px 5px 0 rgba(0, 0, 0, 0.75);
opacity: 1;
// Typography
font: normal 1rem "MySuperAwesomeFont-Regular", sans-serif;
text-align: center;
// Misc in alphabetical order
cursor: pointer;
overflow: hidden;
transition: all 0.3s;
...
}
更多
你可能也喜欢
- @180hbtech/angular-prepare-others-languages 中文文档教程
- @36node/content-sdk 中文文档教程
- @_zaphod/scribejs 中文文档教程
- @aaa-backend-stack/test-environment 中文文档教程
- @aaronlcj/use-last-fm 中文文档教程
- @abcnews/tiny-ducks 中文文档教程
- @activix/bootstrap-datetimepicker 中文文档教程
- @actjs.on/graphite 中文文档教程
- @actra-development-oss/http-server 中文文档教程
- @actualwave/deferred 中文文档教程