mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* updated the hooks to ensure code cleanliness * updated package-lock for the CI/CD
18 lines
400 B
Plaintext
Executable File
18 lines
400 B
Plaintext
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!"
|