rrweb
rrweb copied to clipboard
Pre commit auto prettier
After you run git commit -m "message", the hook kicks in and runs prettier --write against all files going into the commit (so long as there's no conflicts against the unstaged changes).
See Option 4 here: https://prettier.io/docs/en/precommit.html#option-4-git-format-stagedhttpsgithubcomhallettjgit-format-staged
And a blog post with further info https://www.olioapps.com/blog/automatic-code-formatting
🦋 Changeset detected
Latest commit: eee9037dd4c0f9dccd2dbd85360e93d29eb1b62d
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 8 packages
| Name | Type |
|---|---|
| rrweb-snapshot | Patch |
| rrweb | Patch |
| rrdom | Patch |
| rrdom-nodejs | Patch |
| rrweb-player | Patch |
| @rrweb/types | Patch |
| @rrweb/web-extension | Patch |
| rrvideo | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
See Option 4 here: https://prettier.io/docs/en/precommit.html#option-4-git-format-stagedhttpsgithubcomhallettjgit-format-staged
Looks like you went with part of Option 1 here, why didn't you go for lint-staged in the end?
Looks like you went with part of Option 1 here, why didn't you go for lint-staged in the end?
I didn't really see it; let's try that out first before merging this.
I usually use lint-staged + husky for my projects and have been pretty happy with it (though I do see the benefits of git-format-staged w/ partially staged files)