Skip to content

Commit

Permalink
feat: Add .git-blame-ignore-revs
Browse files Browse the repository at this point in the history
  • Loading branch information
letehaha authored and dr497 committed Nov 15, 2023
1 parent 328af16 commit 85e4668
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ...
# ... This file ignores commits that are just cleaning up the code, fixing prettier
# ... or code-style-related eslint warnings
# ...

# prettier warnings cleanup after introducing @bonfida/prettier-config
fa2c3bf739b008b9397a064ad91bf3329f844350
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"extract": "lingui extract",
"compile": "lingui compile",
"format": "npx prettier --write src/**/*.{ts,tsx}",
"prepare": "husky install"
"prepare": "chmod +x ./prepare.sh && ./prepare.sh"
},
"main": "./src/App",
"dependencies": {
Expand Down
13 changes: 13 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Install pre-commit hooks
if ! husky install; then
echo "Failed to install husky hooks"
exit 0
fi

# Setup .git-blame-ignore-revs
if ! git config blame.ignoreRevsFile .git-blame-ignore-revs; then
echo "Failed to set up .git-blame-ignore-revs"
exit 0
fi

0 comments on commit 85e4668

Please sign in to comment.