From 0395b5a5ddc6f40ec167e1ecc68e7e847cff3498 Mon Sep 17 00:00:00 2001 From: solarjoker Date: Sun, 5 May 2019 19:42:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?lint-staged=20=E5=A2=9E=E5=8A=A0=20stylelin?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 77ab1cc40..b0698811a 100644 --- a/package.json +++ b/package.json @@ -127,6 +127,10 @@ "*.{js,jsx}": [ "node_modules/.bin/standard --fix", "git add" + ], + "*.scss": [ + "node_modules/.bin/stylelint --config .stylelintrc --fix", + "git add" ] } } From 9460e73dfa964ea80c8e765ad827a28ee9b70b9a Mon Sep 17 00:00:00 2001 From: solarjoker Date: Sun, 5 May 2019 19:57:01 +0800 Subject: [PATCH 2/2] test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b0698811a..ab1a7b805 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "git add" ], "*.scss": [ - "node_modules/.bin/stylelint --config .stylelintrc --fix", + "stylelint --config .stylelintrc --fix", "git add" ] }