Bun Rules
Ultra-fast JavaScript runtime, bundler, and package manager. Run scripts, install packages, and build projects at speed.
3 rules
bunfig.toml Configuration Standards
Beginner
Every Bun project must use bunfig.toml for runtime and package manager configuration — install behavior, registry settings, and test configuration in one canonical file.
globs: **/bunfig.toml, **/*.ts, **/*.tsx, **/package.json
bunfig, configuration, package-manager, toml
View Rule
Bun Test Conventions
Beginner
Write tests using Bun's built-in test runner with proper conventions — describe/it blocks, expect assertions, lifecycle hooks, and snapshot testing patterns.
globs: **/*.test.ts, **/*.spec.ts, **/bunfig.toml
testing, bun-test, unit-tests, mocking
View Rule
Bun Workspace Structure Standards
Intermediate
Organize Bun monorepos with proper workspace configuration — package.json workspaces, shared dependencies, inter-package references, and consistent script naming.
globs: **/bunfig.toml, **/package.json, **/*.ts
workspaces, monorepo, package-management, dependencies
View Rule