Something went wrong. Try again.
Cursor plugin specification and official plugins
Something went wrong. Try again.
491 B · 23 lines
123456789101112131415161718192021222324#!/bin/bash# Pre-commit lint hook script# This script runs linting checks before commits
set -e
echo "Running lint checks..."
# TypeScript/JavaScript lintingif command -v npx &> /dev/null; then if [ -f "package.json" ]; then echo "Running ESLint..." npx eslint . --ext .ts,.tsx,.js,.jsx --max-warnings 0 || exit 1 fifi
# Python lintingif command -v ruff &> /dev/null; then echo "Running Ruff..." ruff check . || exit 1fi
echo "Lint checks passed!"