From bd7025f0ffdd731bb4e0d2b40ce0d067c4391a00 Mon Sep 17 00:00:00 2001 From: Trezy Date: Tue, 18 Dec 2018 13:09:06 -0600 Subject: [PATCH] perf: Speed up pre-commit hooks We no longer need to build the entire framework to lint it, so I've removed the build step from the pre-commit hook and replaced it with just stylelint. --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index eeeb6aa..cc1f831 100644 --- a/package.json +++ b/package.json @@ -95,12 +95,10 @@ }, "lint-staged": { "scss/**/*.scss": [ - "npm run build", - "git add" + "npm run build:stylelint" ], "*.js": [ - "eslint '.storybook/**/*.js' 'docs/**/*.js'", - "git add" + "eslint '.storybook/**/*.js' 'docs/**/*.js'" ] }, "prettier": {