chore(stylelint-config): add stylelint-config-prettier

This commit is contained in:
chenjiahan 2020-04-02 16:00:35 +08:00
parent d48cd73adb
commit f1887a2890
9 changed files with 47 additions and 32 deletions

View File

@ -1,12 +1,11 @@
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'],
extends: [
'stylelint-config-standard',
'stylelint-config-rational-order',
'stylelint-config-prettier',
],
rules: {
'order/properties-order': [],
'at-rule-no-unknown': null,
'number-leading-zero': null,
'no-descending-specificity': null,
'declaration-colon-newline-after': null,
'font-family-no-missing-generic-family-keyword': null,
'selector-pseudo-element-no-unknown': [
true,
{

View File

@ -1,6 +1,6 @@
{
"name": "@vant/stylelint-config",
"version": "1.2.1",
"version": "1.3.0",
"description": "stylelint config of vant.",
"main": "index.js",
"publishConfig": {
@ -12,6 +12,7 @@
"stylelint": "^13.0.0"
},
"dependencies": {
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.0.0"

View File

@ -2093,6 +2093,11 @@ style-search@^0.1.0:
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
stylelint-config-prettier@^8.0.1:
version "8.0.1"
resolved "https://registry.npm.taobao.org/stylelint-config-prettier/download/stylelint-config-prettier-8.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstylelint-config-prettier%2Fdownload%2Fstylelint-config-prettier-8.0.1.tgz#ec7cdd7faabaff52ebfa56c28fed3d995ebb8cab"
integrity sha1-7Hzdf6q6/1Lr+lbCj+09mV67jKs=
stylelint-config-rational-order@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0"

View File

@ -7,6 +7,11 @@
z-index: @dropdown-item-z-index;
overflow: hidden;
&__icon {
display: block;
line-height: inherit;
}
&__option {
text-align: left;
@ -31,9 +36,4 @@
position: absolute;
max-height: @dropdown-menu-content-max-height;
}
&__icon {
display: block;
line-height: inherit;
}
}

View File

@ -71,8 +71,12 @@
z-index: 2;
width: 100%;
height: 100%;
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, .9), hsla(0, 0%, 100%, .4)),
linear-gradient(0deg, hsla(0, 0%, 100%, .9), hsla(0, 0%, 100%, .4));
background-image: linear-gradient(
180deg,
hsla(0, 0%, 100%, 0.9),
hsla(0, 0%, 100%, 0.4)
),
linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));
background-repeat: no-repeat;
background-position: top, bottom;
backface-visibility: hidden;

View File

@ -102,15 +102,15 @@ export default {
margin: @padding-md 0 0 @padding-md;
}
.van-steps__message + p {
margin-bottom: 10px;
}
p,
h3 {
margin: 0;
font-weight: normal;
font-size: inherit;
}
.van-steps__message + p {
margin-bottom: 10px;
}
}
</style>

View File

@ -14,6 +14,13 @@ a {
text-decoration: none;
}
input,
button,
textarea {
color: inherit;
font: inherit;
}
a,
input,
button,
@ -30,10 +37,3 @@ ul {
padding: 0;
list-style: none;
}
input,
button,
textarea {
color: inherit;
font: inherit;
}

View File

@ -113,14 +113,14 @@ export default {
.demo-tag {
background-color: @white;
.van-tag + .van-tag {
margin-left: @padding-xs;
}
.van-tag {
&:first-of-type {
margin-left: @padding-md;
}
}
.van-tag + .van-tag {
margin-left: @padding-xs;
}
}
</style>

View File

@ -1708,10 +1708,11 @@
fs-extra "^9.0.0"
"@vant/stylelint-config@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@vant/stylelint-config/-/stylelint-config-1.2.1.tgz#3ed9584053f70b1d8461d91dc614d7ec2c9950c1"
integrity sha512-N0M5LJNU3XzjFWA6PhsseQnkLYobzKBEBbYG9+9OnrFdRqweN+jYdDIdDLu5GD5clEEAyFsCabLMPdfBbISPcw==
version "1.3.0"
resolved "https://registry.yarnpkg.com/@vant/stylelint-config/-/stylelint-config-1.3.0.tgz#702cb87a8698185904aea56ada967064e6821aa4"
integrity sha512-XxU8lDPjKnmVkvYPfygH9SyB0nJdpuUgISSkWO6CrlaDdDekYQPSGpBJu+9SWGCxsa7F0sjAYVkyDmij9c53kg==
dependencies:
stylelint-config-prettier "^8.0.1"
stylelint-config-rational-order "^0.1.2"
stylelint-config-standard "^20.0.0"
stylelint-order "^4.0.0"
@ -10705,6 +10706,11 @@ style-search@^0.1.0:
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
stylelint-config-prettier@^8.0.1:
version "8.0.1"
resolved "https://registry.yarnpkg.com/stylelint-config-prettier/-/stylelint-config-prettier-8.0.1.tgz#ec7cdd7faabaff52ebfa56c28fed3d995ebb8cab"
integrity sha512-RcjNW7MUaNVqONhJH4+rtlAE3ow/9SsAM0YWV0Lgu3dbTKdWTa/pQXRdFWgoHWpzUKn+9oBKR5x8JdH+20wmgw==
stylelint-config-rational-order@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0"