简体   繁体   中英

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:

在此处输入图片说明

Does anyone know how I can go about excluded these?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM