Adding lint in angular application
Aug 26, 2022
To implement the ESLint in Angular, Run the below command
ng add @angular-eslint/schematics
It will confirm you to install the required packages, Then press Y
and Enter
Upon successful installation of the required packages, I will show a successful message like below
It will do the following
- It will create the file
.eslintrc.json
- It will update the
package.json
file like below
- It will update the
angular.json
file like below
Please refer this link if you are facing an error like below