JS and TS
This section covers tools, best practices, and guides for JavaScript and TypeScript development.
Overview¶
JavaScript and TypeScript are the backbone of modern web development. Whether you're building frontend applications, backend services, or full-stack solutions, having the right tools and workflows is essential for productive development.
Topics Covered¶
Code Quality & Formatting¶
- OXC Formatter - A high-performance JavaScript/TypeScript formatter written in Rust
Why TypeScript?¶
TypeScript adds static type checking to JavaScript, helping you catch errors early and improve code maintainability:
Benefits
- Type Safety: Catch errors at compile time rather than runtime
- Better IDE Support: Enhanced autocomplete, navigation, and refactoring
- Self-Documenting Code: Types serve as documentation
- Easier Refactoring: Confidence when making large-scale changes
- Modern JavaScript Features: Use the latest JS features with backward compatibility
Tooling Ecosystem¶
The JavaScript/TypeScript ecosystem offers a rich set of tools:
| Category | Tools |
|---|---|
| Bundlers | Vite, Webpack, Rollup, esbuild, Parcel |
| Package Managers | npm, yarn, pnpm, bun |
| Linters | ESLint, oxlint |
| Formatters | Prettier, OXC Formatter |
| Testing | Vitest, Jest, Playwright, Cypress |
| Type Checking | TypeScript, tsc |
Quick Links¶
- OXC Formatter Guide - Learn about the fast Rust-based formatter
- TypeScript Official Website - Documentation, playground, and resources
This section is part of the Code Sigils documentation.