如何在 Visual Studio 2017 中禁用 JavaScript 构建错误?

我刚刚将 Visual Studio 2017 从 RC 更新为最终版本.我没有收到以下错误,但最近我收到了这个错误.在构建项目时,我收到以下错误,它会阻止 Web 项目启动:

I just updated Visual Studio 2017 from RC to final. I didn’t get the following error but recently I get this error. In building the project, I get the following error and it prevents the web project to start:

Severity    Code    Description Project File    Line    Suppression State
Error   eqeqeq  (ESLint) Expected '===' and instead saw '=='.   VistaBest.Shop.Web  C:***Request.js   21

如何在 Visual Studio 2017 中禁用 JavaScript 构建错误?

How can I disable JavaScript building error in Visual Studio 2017?

推荐答案

我想,找到解决办法:

I think, find the solution:

  1. 打开工具>选项
  2. 导航到 文本编辑器 >JavaScript/TypeScript >EsLint(在 VS2017 15.8 中是 Linting 而不是 EsLint)
  3. Enable ESLint 设置为 False
  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > EsLint (in VS2017 15.8 it is Linting not EsLint)
  3. Set Enable ESLint to False

Visual Studio >= 15.8.5

Visual Studio >= 15.8.5

相关文章