From d35f2eae9a24da7fa923f1511b7c4254302b4191 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 b9abb1ce865..1c343bdc03f 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,9 @@ "*.js": [ "prettier --trailing-comma es5 --single-quote --write", "git add" + ], + "yarn.lock": [ + "git rm --cached" ] } }