meet/.husky/pre-commit
Gabriel Díaz ae1ac2d5bf
feat: People Panel (#8)
* chore: Add pre-commit

* feat: Add PeoplePanel

* feat: Add RightPanel wrapper to toggle PeoplePanel and ChatMessages

* feat: Use RightPanel component

* feat: Update ControlBar component to handle middle buttons and right buttons

* feat: Extract livekit layout context from the lib to handle new properties

* feat: Add PeoplePanelToggleButton

* feat: Add translations

* fix: Remove unused import

* feat: Update husky file permissions

* fix: Remove unused things

* fix: Remove unused container
2023-08-15 12:23:50 -03:00

19 lines
518 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g' | { grep -E '(js|ts|tsx|json|yml|md|html|css)$' || true; })
if [ -z "$FILES" ]; then
exit 0
fi
echo "Running prettier"
npm run pre-commit:fix:prettier -- $FILES
TS_FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g' | { grep -E '(js|ts|tsx)$' || true; })
if [[ ! -z "$TS_FILES" ]];then
echo "Running lints"
npm run pre-commit:fix:code -- $TS_FILES
fi