Biome configuration
Biovity uses Biome for fast, consistent linting and formatting across the codebase.Configuration overview
Biome is configured inbiome.json with the following settings:
Available commands
Key formatting rules
- Line width: 100 characters maximum
- Quotes: Double quotes for strings and JSX
- Semicolons: Only when needed (ASI-compatible)
- Trailing commas: ES5 style (arrays, objects)
- Arrow functions: Always use parentheses around parameters
TypeScript conventions
Biovity enforces strict TypeScript patterns for type safety and maintainability.Strict mode
All TypeScript files must:- Define explicit types for function parameters and return values
- Avoid
anytypes (configured as error in Biome) - Use type inference where appropriate for variables
Type organization
Types are organized inlib/types/ by feature:
Naming conventions
Functions and constants
Preferconst arrow functions over function declarations:
Event handlers
Always prefix event handler functions withhandle:
Descriptive names
Use clear, descriptive names for variables and functions:Code patterns
Early returns
Use early returns for better readability:Accessibility
Always include accessibility attributes:Commit conventions
Biovity follows Conventional Commits format:Commit types
feat: New featurefix: Bug fixhotfix: Critical production fixdesign: UI/UX changesrefactor: Code refactoringdocs: Documentation changestest: Adding or updating testschore: Maintenance tasksperf: Performance improvementsstyle: Code formattingci: CI/CD changes
Examples
Commit guidelines
- Use imperative mood (“add” not “added” or “adding”)
- Keep first line under 72 characters
- Be specific in the description
- Reference issues with
Closes #123orFixes #456 - Mark breaking changes with
BREAKING CHANGE:in footer
Branch conventions
Branch names follow this pattern:Branch types
feat/- New featuresfix/- Bug fixeshotfix/- Critical production fixesdesign/- Design/UI changesrefactor/- Code refactoringdocs/- Documentationtest/- Test changeschore/- Maintenance tasks