We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project.
To get started with the project, run yarn
in the root directory to install the required dependencies
Make sure your code passes TypeScript and ESLint. Run the following to verify:
yarn build
yarn lint
To fix formatting errors, run the following:
yarn prettier
Remember to add tests for your change if possible. Run the unit tests by:
yarn test
We use TypeScript for type checking, ESLint with Prettier for linting and formatting the code, and Jest for testing.
The package.json
file contains various scripts for common tasks:
yarn lint
: lint files with ESLint.yarn test
: run unit tests with Jest.yarn build
: build the code for release.
Working on your first pull request? You can learn how from this free series: How to Contribute to an Open Source Project on GitHub.
When you're sending a pull request:
- Prefer small pull requests focused on one change.
- Verify that linters and tests are passing.
- Review the documentation to make sure it looks good.
- Follow the pull request template when opening a pull request.
- For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
Maintainers only
- Run
yarn release
- Update the changelog if required and follow the prompts