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 Timer committed Aug 2, 2017
1 parent 57f2cd7 commit 20c953d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
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 20c953d

Please sign in to comment.