From 784539f88e9e6033af232e7b6ba92cb18b194e4a Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 27 Nov 2019 11:02:59 +0800 Subject: [PATCH] chore: update stylelint config (#2400) --- .stylelintrc | 21 +++++++++++++++++++++ example/app.wxss | 10 +++++----- package.json | 5 ----- 3 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 .stylelintrc 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 },