From 1d3e433bbe6e0f8c9629a728a30d00eaaeb7dffe Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Mon, 29 Jul 2019 22:40:32 -0700 Subject: [PATCH] fix: run lint-staged only on the changed files (#1373) --- 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" ] },