From 7bd47220236c8ee5b49b695e65458ffa398478db Mon Sep 17 00:00:00 2001 From: mwx816443 Date: Fri, 12 Jun 2020 08:27:43 +0800 Subject: [PATCH] update git hook --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9e652ec4..4b4e89d2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", - "lint": "eslint --ext .js,.vue src", + "lint": "eslint --ext .js,.vue src && stylelint --aei .vue,.html src", + "lint:eslint": "eslint --ext .js,.vue src", "lint:style": "stylelint --aei .vue,.html src", "test:unit": "jest --clearCache && vue-cli-service test:unit", "test:ci": "npm run lint && npm run test:unit", @@ -25,6 +26,10 @@ "src/**/*.{js,vue}": [ "eslint --fix", "git add" + ], + "src/**/*.{css,scss,vue,html}": [ + "stylelint", + "git add" ] }, "keywords": [