Files
sealos/frontend/scripts/pre-commit
T
Archer d4ca6cc14b i18n and hpa target (#3548)
* i18n

* fix: update app patch

* fix: hpa target

* init data

* lock

* prettier

* fix: ts
2023-07-20 17:37:30 +08:00

12 lines
243 B
Bash

#!/bin/sh
STAGE_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.ts' '*.tsx' '*.scss' "*.json")
if test ${#STAGE_FILES} -gt 0
then
cd frontend/
echo 'Frontend formatting'
npm run format
else
echo 'No need to format'
fi
exit 0