Improve Angular code with Betterer

Loading

Reading Time: 5 minutes Introduction In software development, when developers work on a project for a period of time, they tend to add code smell into the code that Eslint rules identify as problems. When architect adds a new Eslint rule to fix these errors, npm run lint reports error messages in terminal that require immediate attention. I have … Read more

Angular and Storybook – Mock Data in Component

Loading

Reading Time: 5 minutes Introduction After building a few presentational components, I am ready to build a container component, food menu component, with them. Food menu component is responsible for displaying an option dropdown and a list of menu items. This is the component tree of food menu component. The functions of food menu component are to retrieve menu … Read more

Add value to commit message in Angular

Loading

Reading Time: 3 minutes Introduction When a team of developers works on the project, we should add tools to ensure all developers adopt the same convention of commit messages. The tools ng-spanish-menu application use to enforce commit conventions are commitlint, commitizen and husky. Install dependencies of commitlint and husky locally First, we install commitlint and husky to set up … Read more