mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
Unstage yarn.lock pre-commit (#2700)
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.
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
"*.js": [
|
||||
"prettier --trailing-comma es5 --single-quote --write",
|
||||
"git add"
|
||||
],
|
||||
"yarn.lock": [
|
||||
"git rm --cached"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user