Thanks for your interest in contributing! This guide will help you get started.
- Node.js 18+
- npm
git clone https://github.com/TerminalGravity/preflight.git
cd preflight
npm install
npm run build
npm test- Fork the repository
- Create a feature branch:
git checkout -b feat/my-feature - Make your changes
- Run tests:
npm test - Run lint:
npm run lint - Commit using conventional commits (see below)
- Push and open a Pull Request
We use Conventional Commits:
feat:— new featurefix:— bug fixchore:— maintenance (deps, config, CI)test:— adding or updating testsdocs:— documentation only
Examples:
feat: add support for custom triage rules
fix: handle empty prompt in scoring tool
test: add edge cases for pattern matching
- TypeScript with strict mode
- ESLint for linting (
npm run lint) - 2-space indentation
- Prefer explicit types over
any
- Tests pass (
npm test) - Lint passes (
npm run lint) - Build succeeds (
npm run build) - Description explains what changed and why
- New features include tests
- Use the bug report template for bugs
- Use the feature request template for ideas
- Include reproduction steps when reporting bugs
- Check existing issues before creating new ones