itsdillon readmewriter-example .cursorrules file for TypeScript

- Use async/await syntax over promises for readability
- Export a default instance of the Hono app
- Use bun for building and running the app
- Enable strict TypeScript checking
- Put helper functions in /lib directory
- Use Arrow functions over anonymous functions
- Import from 'hono/jsx' for JSX IntelliSense
- Wrap route handlers in try/catch blocks
- Log errors to the console
- Follow PascalCase for types and interfaces
- Follow camelCase for variables and functions 
- Use descriptive names for variables and functions
- Structure files based on features
- Use Bun's build tooling for production bundles
- Enable sourcemaps in production
bun
typescript

First Time Repository

TypeScript

Languages:

TypeScript: 0.4KB
Created: 7/9/2024
Updated: 10/5/2024

All Repositories (1)