Skip to content
  • Sponsor facebook/create-react-app

  • Notifications You must be signed in to change notification settings
  • Fork 27k

Commit 20c953d

Browse files
jdcrenshTimer
authored andcommittedAug 2, 2017
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.
1 parent 57f2cd7 commit 20c953d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"*.js": [
2626
"prettier --trailing-comma es5 --single-quote --write",
2727
"git add"
28+
],
29+
"yarn.lock": [
30+
"git rm --cached"
2831
]
2932
}
3033
}

0 commit comments

Comments
 (0)
Please sign in to comment.