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
How can I disable JavaScript building error in Visual Studio 2017?
I think, find the solution:
Tools > OptionsText Editor > JavaScript/TypeScript > EsLint (in VS2017 15.8 it is Linting not EsLint)Enable ESLint to FalseTools > OptionsText Editor > JavaScript/TypeScript > Code ValidationEnable JavaScript errors to falseEnable JavaScript errors to true and Show errors as warnings to trueI needed to restart Visual Studio for this to take effect.
There is another option below which will let you edit your global linting settings:
You can also create a file named .eslintrc in the root of your project.
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>