esvalidate
esvalidate copied to clipboard
Unhelpful error messages
The error messages generated by esvalidate
are extremely unhelpful. Take this for example:
user@local:~$ node_modules/.bin/esvalidate index.js
Error: Unexpected reserved word
Where did the error occur? What line? Which file? Which word is reserved? I can't debug an error without adequate information.
Instead of the (it seems default) plain formatter try --format=sublime
like this:
node_modules/.bin/esvalidate --format=sublime index.js
It gives a more readable output such as:
[esvalidate src\getDocument.js]
16,46: Unexpected token =>