Quick Start with Angular and ESLint
In order to create a brand new Angular CLI workspace which uses ESLint instead of TSLint and Codelyzer, simply run the following commands:
# Install the Angular CLI and @angular-eslint/schematics globally however you want (e.g. npm, yarn, volta etc)
npm i -g @angular/cli @angular-devkit/{core,schematics} @angular-eslint/schematics
# Create a new Angular CLI workspace using the @angular-eslint/schematics collection (instead of the default)
ng new --collection=@angular-eslint/schematics
After you follow the interactive prompts the Angular CLI gives you, you have now created a TSLint and Codelyzer free workspace with ng lint
all set up and ready to lint your source code and HTML templates using ESLint! đ
Read on to find out more about how and why they work.