From ca665dbc6037c1094c11c000cf7f27594306426f Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 7 May 2019 15:02:00 +0800 Subject: [PATCH] :zap: prettier before commit --- package.json | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index ff653573d9..c55c922bb2 100644 --- a/package.json +++ b/package.json @@ -236,23 +236,9 @@ "lint-staged" ], "lint-staged": { - "components/**/*.tsx": [ - "npm run lint-staged:ts", - "node ./scripts/prettier.js --pre", + "**/*.{js,jsx,tsx,ts,less,md,json}": [ + "prettier --write", "git add" - ], - "{tests,site,scripts,components}/**/*.{js,jsx}": [ - "npm run lint-staged:es", - "node ./scripts/prettier.js --pre", - "git add" - ], - "{site,components}/**/*.less": [ - "stylelint --syntax less", - "node ./scripts/prettier.js --pre", - "git add" - ], - "components/*/demo/*.md": [ - "npm run lint-staged:demo" ] }, "sideEffects": [