title: How can I check JavaScript code for syntax errors ONLY from the command line?
body: <p>JavaScript programs can be checked for errors in IDEs or using <a href="https://stackoverflow.com/questions/5279226/how-to-check-client-side-javascript-code-for-errors">online web apps</a> but I'm looking for a way to detect syntax errors <em>alone</em>.</p>
  
  <p>I've tried JSLint and JSHint and looked at their options but I haven't been able to find a combination that would exclude warnings and <a href="https://github.com/jshint/jshint/issues/1533" rel="noreferrer">just shows the syntax errors</a>.</p>
  
  <p>How do I check JavaScript code <em>for syntax errors only</em> from the command line? </p>