课程: Angular Essential Training
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Static code linting in Angular
- [Instructor] Code linting, sometimes called static code analysis, is a type of automated test that checks your code for errors without compiling or running the code. Think of it like a grammar guide for your project. It can't tell you if the code will run, but it can tell you if you put the curly brackets in the correct 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 your team writes code in the same way. This makes the code easier to read, easier to search, and more predictable. I opened our project here in a GitHub code space. I talk about why we use code spaces earlier in this course so for now, just think of them as an easy way to share and write code without installing anything on your local machine. I'll go to the root of our project and click on .eslintrc.json. This is the configuration file…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。