How does jslint work?

How does jslint check problems in javascript? Does it have an actual javascript parser?

+3
source share
2 answers

JSLint is written in JavaScript and uses Pratt Parser . He “works” by analyzing the source provided and looking for “problems”. These problems are identified by the author and are not necessarily related to the syntax.

It should be noted that " JSLint defines a professional subset of JavaScript ." This means that not all pure ECMAScript will be displayed in JSLint.

+4
source

Yes, it analyzes and analyzes the code.

, , . , , , , .

+2

Source: https://habr.com/ru/post/1781077/


All Articles