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

  • Notifications You must be signed in to change notification settings
  • Fork 27k
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3654c10

Browse files
committedJul 27, 2017
Unstage yarn.lock pre-commit
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 b1c1224 commit 3654c10

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)