What does ng lint and a formatter give you, and what other tooling do Angular teams use?
Model answer
A linter (ESLint with angular-eslint) finds mistakes and enforces rules, for example unused variables or missing track. A formatter such as Prettier keeps code style consistent. Teams add pre-commit hooks, CI pipelines that run lint, tests and build, and tools such as Compodoc or Storybook for documentation and component demos.
Consistent tooling reduces review arguments and catches problems before they reach production.
Learn this topic
Angular Tutorial: Beginner to Advanced .
Sign in to add your own answer.
More questions
- How do you write a unit test for a component or a service in Angular?
- What is the difference between unit, integration and end-to-end tests?
- How do you test a component that calls an API?
- How do you test route guards, pipes and directives?
- How do you handle environment-specific settings in Angular?
- How would you structure a large Angular application?