mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
5e55a3a3f1
- 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>
24 lines
491 B
Bash
Executable File
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!"
|