A TypeScript project template generator with ESLint, esbuild, and Prettier pre-configured.
- TypeScript - Type-safe JavaScript development
- ESLint - Code linting with TypeScript support
- esbuild - Fast bundling and building
- Prettier - Code formatting
- Node.js - Runtime environment
Create a new TypeScript project using npx:
npx create-typescript-hello-world my-project
cd my-project
npm install
npm run devmy-project/
├── src/
│ └── index.ts # Main application entry point
├── dist/ # Build output (generated)
├── esbuild.config.js # esbuild configuration
├── tsconfig.json # TypeScript configuration
├── eslint.config.js # ESLint configuration
├── .prettierrc # Prettier configuration
├── .prettierignore # Prettier ignore patterns
├── .gitignore # Git ignore patterns
└── package.json # Project dependencies and scripts
npm run dev- Start development with file watchingnpm run build:watch- Build with file watching
npm run build- Build the project for productionnpm run clean- Remove build artifacts
npm run lint- Run ESLint on source filesnpm run lint:fix- Run ESLint and fix issues automaticallynpm run format- Format code with Prettiernpm run format:check- Check if code is formatted correctlynpm run type-check- Run TypeScript type checking
npm start- Run the built application
- Target: ES2020
- Module: ESNext
- Strict mode enabled
- Source maps enabled
- Path mapping for
@/*tosrc/*
- TypeScript parser and plugin
- Prettier integration
- Recommended rules enabled
- Type-aware linting
- Entry point:
src/index.ts - Output:
dist/index.js - Platform: Node.js
- Source maps enabled
- Watch mode support
- Single quotes
- Semicolons
- 2-space indentation
- 80 character line width
- ES5 trailing commas
typescript- TypeScript compiler@types/node- Node.js type definitionseslint- JavaScript/TypeScript linter@typescript-eslint/parser- TypeScript parser for ESLint@typescript-eslint/eslint-plugin- TypeScript rules for ESLintprettier- Code formattereslint-config-prettier- Disable ESLint rules that conflict with Prettiereslint-plugin-prettier- Run Prettier as an ESLint ruleesbuild- Fast JavaScript bundler and minifier