Thanks for your interest in contributing!
- Node.js >= 20 (this repo uses Volta/PNPM)
- PNPM installed
- Install dependencies:
pnpm install - Run tests:
pnpm test - Lint:
pnpm lint
lib/rules/*: ESLint rulestests/lib/rules/*: Rule tests usingRuleTesterindex.js: Plugin export
- Create
lib/rules/my-rule.jsexporting the standard ESLint rule object. - Add tests under
tests/lib/rules/my-rule.test.jswith valid/invalid cases. - Export your rule in
index.jsunder theruleskey. - Ensure
pnpm testpasses.
Use conventional commits (e.g., feat(rule): ..., fix(rule): ..., docs: ...).
- Include a clear description and rationale.
- Update README and docs if behavior changes.
- Ensure tests are added/updated and pass.
Please adhere to our Code of Conduct.