From 20c953d091c1450fe89e3171aaace90b2d7a5afb Mon Sep 17 00:00:00 2001
From: Jon Crenshaw <jdcrensh@gmail.com>
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 b9abb1ce8..1c343bdc0 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"
     ]
   }
 }
-- 
GitLab