From 0f7e746c82411b26f5c08d64e4723b70fd3c8b0c Mon Sep 17 00:00:00 2001 From: Chen Fengyuan Date: Sun, 10 Mar 2019 15:06:33 +0800 Subject: [PATCH] build: add stylelint --- .stylelintrc | 10 ++++++++++ postcss.config.js | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .stylelintrc diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 000000000..eacc08cb0 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,10 @@ +{ + "extends": "stylelint-config-standard", + "plugins": [ + "stylelint-order" + ], + "rules": { + "no-descending-specificity": null, + "order/properties-alphabetical-order": true + } +} diff --git a/postcss.config.js b/postcss.config.js index 88de663df..29f9daf85 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -15,6 +15,8 @@ module.exports = { 'postcss-header': { header: rollupConfig.output[0].banner, }, - stylefmt: {}, + stylelint: { + fix: true, + }, }, };