VTChat uses a lightweight tooling stack for performance and code quality.
- dprint: Fast code formatter
- oxlint: Comprehensive linting
- Bun: Package manager and JavaScript runtime
- TypeScript: Strict type checking
dprint.json: dprint configuration.oxlintrc.json: oxlint configurationturbo.json: Turborepo caching configurationpackage.json: Scripts and dependencies
# Install dprint
bun add -D dprintdprint.json:
{
"$schema": "https://dprint.dev/schemas/v0.json",
"lineWidth": 100,
"indentWidth": 4,
"useTabs": false,
"excludes": ["node_modules", ".next", ".turbo", "dist", "build", "coverage"],
"plugins": [
"https://plugins.dprint.dev/typescript-0.95.9.wasm",
"https://plugins.dprint.dev/json-0.20.0.wasm"
],
"typescript": {
"quoteStyle": "preferSingle",
"semiColons": "always"
}
}# Install oxlint
bun add -D oxlint.oxlintrc.json:
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["recommended"],
"rules": {
"no-unused-vars": "warn",
"no-console": "off"
}
}{
"scripts": {
"fmt": "dprint fmt",
"fmt:check": "dprint check",
"lint": "oxlint",
"format": "prettier --write \"**/*.md\"",
"format:check": "prettier --check \"**/*.md\"",
"check": "bun run fmt:check && bun run lint"
}
}# Format code
bun run fmt
# Check formatting and linting
bun run check
# Run lint only
bun lint- Format code:
bun run fmt - Check linting:
bun run check - Run tests:
bun test
- dprint: Rust-based, extremely fast formatting
- oxlint: Rust-based linting
- Bun: Fast package management and script execution
Install the dprint extension for VS Code:
{
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true
}- Ensure
dprint.jsonand.oxlintrc.jsonexist at repository root. - Add build directories to
excludesif needed.
This tooling setup provides fast, reliable development with consistent formatting and linting.