This project is read-only.

Separating syntax errors from JSLint suggestions

Dec 2, 2014 at 9:13 AM
Hi,

Right now, I'm not a JavaScript expert, but I installed JSLint to become one. I like the suggestions it gives me, but I would like to separate them from typical syntax errors. I want to achieve the best code quality, but I would love to have a properly parsed JavaScript file.

Is that possible?

Best wishes,
Mariusz
Dec 4, 2014 at 9:37 AM
By default in JSLint.NET for Visual Studio, JSLint warnings show as blue squiggles whereas syntax errors discovered by Visual Studio will show as red squiggles. So that's one differentiation in the code editor.

To change how they appear in the error list, you can create a JSLintNet.json file in the root of your project and change the output to Warning or Message rather than Error.
{
  "output": "Warning"
}
Dec 12, 2014 at 9:54 AM
So I did. I tried to add a syntax error, so I put
\
In the code. I did get a lot of warnings and a warning titled "Invalid character". But is it possible to have that single warning as an error?