Skip to content

Commit adb4c6d

Browse files
jdcrenshJohnNilsson
authored andcommitted
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.
1 parent de34cf6 commit adb4c6d

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
@@ -29,6 +29,9 @@
2929
"*.js": [
3030
"prettier --trailing-comma es5 --single-quote --write",
3131
"git add"
32+
],
33+
"yarn.lock": [
34+
"git rm --cached"
3235
]
3336
}
3437
}

0 commit comments

Comments
 (0)