Remove a bit from pre-commit that husky says we should (#4286)
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Only auto-format desktop TS code if relevant files are modified
|
# Only auto-format desktop TS code if relevant files are modified
|
||||||
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
|
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
|
||||||
if [ -d "ui/desktop" ]; then
|
if [ -d "ui/desktop" ]; then
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
cd ui/desktop && npx lint-staged
|
cd ui/desktop && npx lint-staged
|
||||||
else
|
else
|
||||||
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
|
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
|
||||||
|
|||||||
Reference in New Issue
Block a user