Contributing
March 20, 2026 ยท View on GitHub
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. Creating an issue for a feature request is also acceptable. For smaller fixes, additions, or changes a simple fork and pull request is sufficient.
Please note we have a code of conduct; please follow it in all your interactions with the project.
Branching and Pull Requests
- Fork the repository and create a new branch from
mainwith a descriptive name (e.g.feat/block-validationorfix/typo-in-readme). - Make your changes, following the Style Guide.
- Add or update tests for any code you change (see the Testing section below).
- Run
npm run lintandnpm testto confirm everything passes before opening a PR. - Submit a pull request against
mainwith a clear title and description. Reference any related issues.
Testing
- Tests live in the
test/folder of each package and mirror thesrc/structure. - Run all tests from the repo root with
npm test. - When adding tests that call functions expecting a
DocumentDiagnosticsBuilder, useTestDiagnoser.createDocumentrather thanTestDiagnoser.create.
Contributing Features
Looking to add diagnostics, autocompletions, or custom type definitions? See the Contributing Features Guide for a step-by-step workflow covering setup, implementation, testing, and submitting a pull request.