Esprima: Syntax Validator
Unlike a typical code linter, this syntax validator does not care about coding styles and formatting.
If there is a syntax error, the sign will be shown in the left-side gutter. Placing the mouse cursor over that sign will reveal the complete error description.
For a command-line usage, check esvalidate from Esprima package (for Node.js).
There is also a plugin for Grunt called grunt-jsvalidate.
Ant users can take a look at an exemplary Ant task for syntax validation.
Read more here: Source link