Thanks for your interest in improving react-use-echarts!
- Node.js 22 or newer (CI runs on 24.x)
- Vite+ CLI (
vp) available in your shell - Git
- Fork this repository and clone it locally.
- Install dependencies:
vp install. - Create a feature branch:
git checkout -b feat/my-feature. - Start the playground for manual verification:
vp dev(serves the examples on http://localhost:3000). - Implement and self-test your changes.
vp dev– run the Vite dev server with the examples underexamples/.vp lint .– run Oxlint to check for issues.vp check– run format + lint + typecheck in one command.vp run typecheck– run dedicated TypeScript type validation (tsc -b).vp test– execute the Vitest suite (watch mode by default).vp test run --coverage– generate coverage reports.vp build– build the examples application with Vite.vp pack– build the library (ESM) and type declarations intodist/. Runspublint+attwautomatically.
Run vp check && vp test run before opening a pull request. This is the same set of checks we rely on for releases.
- Keep each PR focused on a single feature or fix.
- Update documentation (
README.md,examples/, API comments) when behavior or public APIs change. - Add or update tests in
src/__tests__for any logic changes. - Ensure
vp checkandvp test runpass locally. - Describe the motivation, solution, and validation steps in the PR body.
When filing an issue, please include:
- Version information:
react-use-echarts, React, ECharts, Node.js. - Clear steps to reproduce (ideally a minimal sandbox or code sample).
- Expected behavior and actual behavior.
- Any relevant logs, stack traces, or screenshots.
By contributing, you agree that your contributions will be licensed under the MIT License.