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 JohnNilsson committed Sep 9, 2017
1 parent de34cf6 commit adb4c6d
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 adb4c6d

Please sign in to comment.