diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 00000000..a008c20c --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,21 @@ +{ + "extends": [ + "@vant/stylelint-config" + ], + "rules": { + "unit-no-unknown": [ + true, + { + "ignoreUnits": "/rpx/" + } + ], + "selector-type-no-unknown": [ + true, + { + "ignoreTypes": [ + "/page/" + ] + } + ] + } +} diff --git a/example/app.wxss b/example/app.wxss index 9e213a20..2e1f0b1f 100644 --- a/example/app.wxss +++ b/example/app.wxss @@ -1,12 +1,12 @@ page { - color: #333; - font-size: 16px; - background: #f2f3f5; - min-height: 100vh; box-sizing: border-box; + min-height: 100vh; padding: 0 0 100rpx; + color: #323233; + font-size: 16px; + font-family: 'PingFang SC', Helvetica, Arial, sans-serif; + background: #f7f8fa; -webkit-font-smoothing: antialiased; - font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif; } .demo-margin-left { diff --git a/package.json b/package.json index 3a1e75f5..09bf604d 100644 --- a/package.json +++ b/package.json @@ -81,11 +81,6 @@ "webpack-cli": "^3.3.6", "webpack-serve": "^2.0.3" }, - "stylelint": { - "extends": [ - "@vant/stylelint-config" - ] - }, "prettier": { "singleQuote": true },