From adb4c6d1cdf6e57b40b7e7d38c6b7a085b241360 Mon Sep 17 00:00:00 2001 From: Jon Crenshaw Date: Tue, 1 Aug 2017 18:52:26 -0700 Subject: [PATCH] Unstage yarn.lock pre-commit (#2700) Since yarn.lock shouldn't be added to the repo, nor excluded via .gitignore, lets take advantage of lint-staged to remove any staged yarn.lock files before they can even be committed. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index ab4de27c66d..730126aa6ce 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,9 @@ "*.js": [ "prettier --trailing-comma es5 --single-quote --write", "git add" + ], + "yarn.lock": [ + "git rm --cached" ] } }