emmercm/igir

View on GitHub
.husky/pre-commit

Summary

Maintainability
Test Coverage

# 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