如何在Visual Studio 2017中关闭JSLint? [英] How do I turn off JSLint in Visual Studio 2017?

查看:126
本文介绍了如何在Visual Studio 2017中关闭JSLint?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2017中加载了一个较旧的aspnet mvc项目,但无法构建它,因为来自jslint的成千上万的警告/错误告诉我jQuery包的支架放置不良等诸多原因.坦白说,我不在乎jslint的任何错误,至少是所有jQuery错误.

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.

我在GUI中找不到jslint的任何选项.

I can't find any options for jslint in the GUI.

  • 右键单击该项目不会显示jslint上下文菜单
  • Tools > Options
  • 中似乎不存在
  • 我尝试了此解决方案,关闭EsLint,但是什么也没做.
  • 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.

推荐答案

JSLint.Net是一个NuGet程序包.您可以通过 JSLintNet.json设置文件(在该页面的末尾显示有一个设置对话框,但在VS 2015或VS 2017中都找不到.)或者您可以通过Project > Manage NuGet Packages...菜单卸载该软件包.

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.

这篇关于如何在Visual Studio 2017中关闭JSLint?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆