export const preflight = {
    name: "preflight",
    description: "Pre-commit quality check — TypeScript, lint, tests, and code hygiene before committing",
    content: `Run a fast pre-commit quality check. This should be run before every commit to catch issues early.

## Checks to Run

### 1. TypeScript Compilation
- Run \`npx tsc --noEmit\` (or equivalent for the project)
- List ALL type errors with file:line
- Flag any \`any\` types in changed files

### 2. Lint Violations
- Run the project's linter (eslint, biome, etc.)
- Focus on errors, not warnings
- Auto-fix what's safe to auto-fix

### 3. Test Suite
- Run \`npm test\` or equivalent
- If tests fail, list which tests and why
- Do NOT skip failing tests

### 4. Code Hygiene
Scan staged/changed files for:
- console.log statements (should be removed or use logger)
- Commented-out code blocks (should be deleted)
- TODO/FIXME without ticket reference
- Unused imports
- debugger statements
- .only() on tests

### 5. Import Analysis
- Check for circular imports in changed files
- Flag any new imports from node_modules that aren't in package.json

## Output

Print a PASS/FAIL checklist:
\`\`\`
[✓] TypeScript: No errors
[✗] Lint: 3 errors in src/api/route.ts
[✓] Tests: 42 passed
[✗] Hygiene: 2 console.logs found
[✓] Imports: Clean
\`\`\`

If ANY check fails, list the specific issues and DO NOT proceed with commit.
If all pass, print "Ready to commit" and suggest a commit message based on the changes.`
};
//# sourceMappingURL=preflight.js.map