From 07b6470711deea2f73dfbe630f060f507678bf11 Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Sat, 27 Jul 2019 18:08:44 +0000 Subject: [PATCH] fix: run lint-staged only on the changed files --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aee557e011..9a1434313f 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "prettierOptions": "--jsx-bracket-same-line --trailing-comma es5 --semi --tab-width 2", "lint-staged": { "{playground,src,test}/**/*.js": [ - "npm run lint", - "npm run cs-format", + "eslint --fix", + "prettier --jsx-bracket-same-line --trailing-comma es5 --use-tabs false --semi --tab-width 2 --write", "git add" ] },