mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
17 lines
400 B
Text
Executable file
17 lines
400 B
Text
Executable file
echo "Running pre-commit checks..."
|
|
|
|
# Run ESLint
|
|
echo "Running ESLint..."
|
|
npm run lint || {
|
|
echo "❌ ESLint check failed. Please fix the errors and try committing again."
|
|
exit 1
|
|
}
|
|
|
|
# Run Prettier
|
|
echo "Running Prettier..."
|
|
npm run format || {
|
|
echo "❌ Prettier check failed. Run 'npm run format:fix' to automatically fix formatting issues."
|
|
exit 1
|
|
}
|
|
|
|
echo "✅ All checks passed!"
|