Skip to content

Commit

Permalink
Unstage yarn.lock pre-commit
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 committed Jul 27, 2017
1 parent b1c1224 commit 3654c10
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 @@ -25,6 +25,9 @@
"*.js": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
],
"yarn.lock": [
"git rm --cached"
]
}
}

0 comments on commit 3654c10

Please sign in to comment.