Skip to content

Commit

Permalink
Unstage yarn.lock pre-commit (#2700)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jdcrensh authored and swengorschewski committed Oct 12, 2017
1 parent 1454800 commit 5c03b45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"*.js": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
],
"yarn.lock": [
"git rm --cached"
]
}
}

0 comments on commit 5c03b45

Please sign in to comment.