Skip to content

A sane way to start a Typescript project

License

Notifications You must be signed in to change notification settings

startkit-dev/typescript

Repository files navigation

startkit/typescript

A sane way to start your next TypeScript project. Fast, strict, and minimal.

What's included

Tool Purpose
Bun Runtime, test runner
tsdown Build (rolldown-based)
oxlint Linting (type-aware)
oxfmt Formatting
TypeScript 5 Strict mode, all the way

No ESLint. No Prettier. No slow tooling.

Getting started

# Install dependencies
bun install

# Run the app
bun dev

# Build for production
bun run build

# Run the built output
bun start

Scripts

bun run check        # Run all checks (format, lint, typecheck, test)
bun run fix          # Auto-fix format and lint issues
bun run typecheck    # TypeScript type checking
bun run lint         # Lint with type-aware rules
bun run format       # Format with oxfmt
bun test             # Run tests
bun run outdated     # Interactive dependency updates
bun run clean        # Clean build caches
bun run nuke         # Clean everything including node_modules

Project structure

src/
  index.ts           # Entry point
tsconfig.json        # Strict TypeScript config
.oxlintrc.json       # Linter config (correctness: error, perf: warn)
.oxfmtrc.jsonc       # Formatter config (no semis, double quotes)

Conventions

  • Strict TypeScript -- no any, no as casts
  • No semicolons, double quotes
  • Imports are auto-sorted
  • Tests use bun:test

License

MIT

About

A sane way to start a Typescript project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published