This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toggle-dtop() { | |
ICON_VISIBILITY_STATE=${ICON_VISIBILITY_STATE:-1} | |
defaults write com.apple.finder CreateDesktop $ICON_VISIBILITY_STATE && killall Finder; | |
ICON_VISIBILITY_STATE=$((!ICON_VISIBILITY_STATE)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
. "$(dirname "$0")/_/husky.sh" | |
set -e | |
bin_dir="node_modules/.bin" | |
echo "running pre-commit script..." | |
# --diff-filter used to exclude deleted files | |
prettier_staged_files=$(git diff --cached --name-only --diff-filter="ACMRTUXB") | |
eslint_staged_files=$(git diff --cached --name-only --diff-filter="ACMRTUXB" -- *.{tsx,ts,js,jsx}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
. "$(dirname "$0")/_/husky.sh" | |
# navigate to parent of husky dir- we assume pnpm-lock is located there. | |
cd "$(dirname $0)/.." | |
LOCKFILE_CHANGED_LINES=`git diff HEAD@{1} --stat -- pnpm-lock.yaml | wc -l` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#serve the files in the current directory at http://localhost:3000 | |
alias serve-dir="python -m SimpleHTTPServer 3000" | |
#undo the last commit, leaving all its changes unstaged but still present | |
alias grollback="git reset HEAD~" | |
#reset local master to match origin/master | |
alias reset-local-master="git checkout -B master origin/master" | |
alias ga="git add ." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ES6", | |
"module": "commonjs", | |
"allowSyntheticDefaultImports": true, | |
"jsx": "react", | |
"alwaysStrict": true | |
}, | |
"exclude": [ | |
"dist", |