Files
cursor__plugins/plugins/boilerplate/scripts/lint.sh
ericzakariasson 5e55a3a3f1 Initial commit: Cursor plugin specification and boilerplate
- Add plugin specification README with complete schema documentation
- Include boilerplate plugin demonstrating all components:
  - Rules (.mdc files with frontmatter)
  - Agents (specialized subagent definitions)
  - Skills (self-contained capabilities with SKILL.md)
  - Hooks (pre/post event automation)
  - MCP servers (external tool integrations)
  - Extensions directory structure

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-22 17:54:49 -08:00

24 lines
491 B
Bash
Executable File

#!/bin/bash
# Pre-commit lint hook script
# This script runs linting checks before commits
set -e
echo "Running lint checks..."
# TypeScript/JavaScript linting
if 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
fi
fi
# Python linting
if command -v ruff &> /dev/null; then
echo "Running Ruff..."
ruff check . || exit 1
fi
echo "Lint checks passed!"