From the course: Angular: Testing and Debugging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installing and running ESLint

Installing and running ESLint - Angular Tutorial

From the course: Angular: Testing and Debugging

Start my 1-month free trial

Installing and running ESLint

- [Instructor] Code linting also called static code analysis is a type of automated test that checks your code for errors without compiling or running the code. So if it doesn't run the code, what kind of errors does it look for? Well, think of it as a way to standardize how you write the source code in a project, a grammar guide, if you will. Static code analysis can't tell you if the code will run, but it can tell you if you put the curly brackets in the proper place. The biggest benefit of code linting is consistency between developers. We all have a personal style and linting the code is a great way to make sure everyone on a team is writing the code in a similar way. This makes the code easier to read, more predictable and easier to run a diff against in version control. As of this recording, Angular includes TSLint as part of its default packages when you generate a new project using the Angular CLI tool. TSLint was a great option but its code authors deprecated the tool in 2019…

Contents