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 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
How can I disable JavaScript building error in Visual Studio 2017?
I tried Mohammad`s solution but it didn't work. I managed to work doing the following:
<PropertyGroup>
add the following entry:<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
In Visual Studio 2017 (v 15.8.0):
Option 1: Options > JS Errors
Tools > Options
Text Editor > JavaScript/TypeScript > Code Validation
Enable JavaScript errors
tofalse
Enable JavaScript errors
totrue
andShow errors as warnings
totrue
I needed to restart Visual Studio for this to take effect.
Option 2: Options > Linting
There is another option below which will let you edit your global linting settings:
Option 3: .eslint file
You can also create a file named
.eslintrc
in the root of your project.Option 4: ESLint commands in-file
See @user9153924's answer
Resources