DEV Community

Discussion on: Migrating and configuring Eslint with Angular 11

Collapse
 
pmo1948 profile image
pmo1948

Hi,
Once everything has been configured, is there a way to run it, or add it to a github hook?
Before, I could run npm lint, where that would run ng lint and I could use that as needed. I tried running eslint from the terminal, but it did not give me any errors. (I know I have errors though, bc Webstorm is letting me know)

Collapse
 
pmo1948 profile image
pmo1948

solution - in angular.json, change "builder" : "@angular-devkit/build-angular:tslint" to "builder": "@angular-eslint/builder:lint"