Contributing
Guidelines for contributing to the Danvas platform
Overview
We welcome contributions! This guide explains our coding standards, testing patterns, and the process for submitting changes.
Engineering Standards
- Consistency: Adhere to existing naming conventions and architectural patterns.
- Type Safety: No
any. Use strict TypeScript and Drizzle-generated types. - Surgical Changes: Keep pull requests focused on a single task. Avoid unrelated refactoring.
- Self-Documentation: Write clear, descriptive code. Use inline comments for complex business logic only.
Coding Style
We use Biome for linting and formatting.
# Lint and fix
bun run lint
# Format
bun run formatRefer to the Code Style guide for detailed conventions.
Testing
Every change MUST include tests.
- Unit Tests: Use Vitest for package-level logic.
- E2E Tests: Use Playwright for critical app flows (sign-in, filing reports).
Run tests from the repository root: