.husky/pre-commit
# Change to the project's root directory
cd "$(dirname -- "$0")/.." || exit 1
# Ensure node is available
node --version > /dev/null 2>&1 || exit 1
# Ensure node modules are installed
if [ ! -d "node_modules" ]; then
npm ci --ignore-scripts
fi
# Follow the linter
npm run lint:fix