How do I turn off JSLint in Visual Studio 2017?

佐手、 提交于 2020-01-16 17:26:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!