This project was generated using Angular CLI version 21.0.4.
The purpose of this project is to demonstrate a set of rules for eslint and prettier, apply them through husky pre-commit hook and in that way enable uniform code writing at the team level, in accordance with up-to-date best practices and community recommendations.
Eslint settings are located in the .eslintrc.json file, while prettier rules are listed in .prettierrc.json. When running the pre-commit hook, the lint-staged command is executed, defined through .lintstagedrc.json. Also, attention should be paid to .editorconfig which is aligned with prettier rules.
| Installation | Version |
|---|---|
| Node.js | 22.21.0 |
| npm | 10.9.4 |
It's recommended to use VS Code for development. The following VS Code extensions are Recommended:
| Name | ID |
|---|---|
| Angular Language Service | Angular.ng-template |
| Code Spell Checker | streetsidesoftware.code-spell-checker |
| Prettier ESLint | rvest.vs-code-prettier-eslint |
| Prettier | esbenp.prettier-vscode |
| ESLint | dbaeumer.vscode-eslint |
| EditorConfig | editorconfig.editorconfig |
To install dependencies, run:
npm installTo start a local development server, run:
npm run startOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
To build the project run:
npm run buildThis will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.