Thanks for contributing to prompt-lint.
- Install Node.js 18+.
- Clone the repository.
- Install dependencies (none required for runtime, but npm is used for scripts):
npm installRun tests:
npm testRun the linter on the example prompts:
npm run lint:exampleRun the CLI directly:
node ./src/cli.js- Keep changes dependency-light.
- Favor small, composable rule modules in
src/rules/. - Add or update tests in
test/for behavioral changes. - Keep CLI behavior deterministic and CI-friendly.
- Create a branch from
main. - Make focused commits with clear messages.
- Ensure
npm testpasses. - Open a pull request with:
- What changed
- Why it changed
- Any compatibility or migration notes
Please include:
- Node.js version
- OS/platform
- Reproduction steps
- Expected behavior
- Actual behavior