A ready-to-use Angular project with ESLint, Prettier, and Husky pre-configured for a modern development workflow.
- Angular 20.0.0 - Latest Angular framework
- ESLint - Code linting with TypeScript and Angular rules
- Prettier - Code formatting with consistent styling
- Husky - Git hooks for automated code quality checks
- Pre-commit hooks - Automatic linting and formatting before commits
- TypeScript ESLint rules
- Angular-specific linting rules
- Prettier integration for consistent formatting
- Custom component and directive selector rules
- 2-space indentation
- Single quotes
- Semicolons enabled
- 120 character line width
- ES5 trailing commas
Automatically runs before each commit:
npm run lint- Lints all codenpm run format- Formats code with Prettiergit add .- Stages any formatting changes
-
Install dependencies
npm install
-
Start development server
npm start
-
Build for production
npm run build
npm start- Start development servernpm run build- Build for productionnpm run test- Run unit testsnpm run lint- Run ESLintnpm run format- Format code with Prettiernpm run watch- Build in watch mode
The project ensures code quality through:
- Automated linting on every commit
- Consistent code formatting
- Angular best practices enforcement
- TypeScript strict checking
Simply code and commit - the tools will handle the rest!
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpFor more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.