22.2 Linter
As you saw in Figure 22.1, there is a reference to ESLint for most of the rules in the Airbnb style guide. This is a program that detects antipatterns in the source code and points them out to you as the developer. Like any other programming language, JavaScript has its pros and cons. Douglas Crockford, the inventor of the JavaScript Object Notation (JSON) format, set out to improve JavaScript. For this purpose, he developed the JSLint program (www.jslint.com/). This program scans your source code for known antipatterns and points them out to you. The patterns JSLint looks for represent known weaknesses of JavaScript. It also directs your attention to code sections that often cause errors in applications.
In addition to JSLint, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access