All pull requests are welcome! By participating in this project, you agree to abide by our code of conduct.
Fork, then clone the repository:
# replace `<user>` with your username
git clone git@github.com:<user>/html-react-parser.git && cd html-react-parserInstall package dependencies:
npm installMake your change. Add tests and/or documentation. Ensure all tests and lint pass:
npm test
npm run lint
npm run lint:dtsWrite a commit message that follows the Conventional Commits specification.
The commit message will be linted during the pre-commit Git hook. To manually lint the most recent commit message:
git log -1 --pretty=format:"%s" | npx commitlintPush to your fork and submit a pull request.
At this point you're waiting on us. We like to comment on pull requests within three business days (and, typically, one business day). We may suggest changes, improvements, or alternatives.
Things that will improve the chance that your pull request will be accepted:
- Write tests that pass CI.
- Write good documentation.
- Write a good commit message.
Run tests with coverage:
npm testView coverage report in your browser:
open coverage/lcov-report/index.htmlLint codebase:
npm run lintFix lint errors:
npm run lint:fixTest TypeScript declaration files for style and correctness:
npm run lint:dtsRelease is automated with Release Please.