Biome
Commands
bash
biome lint # Check for lint errors biome lint --write # Fix lint errors automatically biome check # Lint + format check (no fixes) biome check --write # Lint + format with auto-fix biome format --write # Format code only
Configuration
Biome is configured at biome.json with:
- •Recommended rules for JavaScript/TypeScript
- •Auto import organization enabled
- •Consistent formatting across the project
- •File exclusions for build outputs and node_modules
Ignoring Rules
<template id="ignoring-rules">typescript
// biome-ignore lint/suspicious/noExplicitAny: legacy API return type
const data: any = legacyApiCall()
// biome-ignore lint/style/noUnusedTemplateLiteral: intentional template for formatting
const template = `${ unused }`
Always include explanation after the colon.
</template> <instructions>- •Run
biome check --writebefore committing - •Always explain rule ignores with clear reasoning
- •Use auto-fix when possible:
biome lint --write - •Check for new violations:
biome lint - •Never disable rules globally in config unless project-wide requirement
- •Ignoring rules without explanation
- •Disabling rules globally instead of per-line
- •Not running check before committing
- •Committing code that fails lint checks