Ian
Ian

Reputation: 34549

Disabling formatting warnings in JSHint

I've just decided to run my JavaScript through JSHint (using the WebEssentials extension within Visual Studio). I'm getting a whole bunch of warnings about formatting, which fight against the Visual Studio auto-formatting (which I prefer). I'd like to turn these warnings off but I can't figure out how.

I can't see anything in the JSHint Documentation that relates to whitespace/function formatting.

I also don't get any warning numbers out so I don't think I can exclude by warning:

enter image description here

Does anyone know how I can go about excluded these?

Upvotes: 1

Views: 223

Answers (1)

Henrik Andersson
Henrik Andersson

Reputation: 47222

Your problems stems from JavaScript Code Style

You can edit those settings from the Web Essentials menu, then select the Edit Global JSCS settings option. (I hope. I've never even opened Visual Studio in my life).

You can read up on the rules here

Upvotes: 1

Related Questions