问题
I loaded up an older aspnet mvc project in Visual Studio 2017, and I can't build it because thousands of warnings/errors from jslint are telling me that the jQuery package has bad bracket placement, among many other things. Frankly, I don't care about any of the errors from jslint, least of all the jQuery errors.
I can't find any options for jslint in the GUI.
- Right-clicking on the project gives no jslint context menu
- It doesn't seem to exist in
Tools > Options
- I tried this solution, of turning off EsLint, but that did nothing.
回答1:
JSLint.Net is a NuGet package. You can configure it via a JSLintNet.json settings file (at the end of that page it says there's a settings dialog, but I can't find it in either VS 2015 or VS 2017.) Or you can uninstall the package thru the Project > Manage NuGet Packages...
menu.
来源:https://stackoverflow.com/questions/47400595/how-do-i-turn-off-jslint-in-visual-studio-2017