fleet-memory/scripts/hooks/lint-node.sh
Nicolò Boschi 9394cf92f2
fix: doc build and lint files (#34)
* fix doc build

* fix doc build
2025-12-16 13:49:09 +01:00

13 lines
320 B
Bash
Executable file

#!/bin/bash
# Lint Node/TypeScript code with ESLint and Prettier
set -e
REPO_ROOT="$(git rev-parse --show-toplevel)"
cd "$REPO_ROOT/hindsight-control-plane"
echo " Linting Node/TS with ESLint and Prettier..."
npx eslint --fix "src/**/*.{ts,tsx}"
npx prettier --write "src/**/*.{ts,tsx}"
echo " Node lint complete"