You can go to Tools > Options > Debugging > General > and then in the right part almost like in the middle of the scroll you'll find the option to enable or disable JavaScript debugging.
Go into Tools -> Options then navigate into Projects and Solutions -> Web Projects and uncheck the option Stop debugger when browser window is closed.
Visual Studio 2019 provides rich support for JavaScript development, both using JavaScript directly, and also using the TypeScript programming language, which was developed to provide a more productive and enjoyable JavaScript development experience, especially when developing projects at scale.
I think, find the solution:
Tools > Options
Text Editor > JavaScript/TypeScript > EsLint
(in VS2017 15.8 it is Linting
not EsLint
)Enable ESLint
to False
Visual Studio >= 15.8.5
Tools > Options
Text Editor > JavaScript/TypeScript > Code Validation
Enable JavaScript errors
to false
Enable JavaScript errors
to true
and Show errors as warnings
to true
I 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.
See @user9153924's answer
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>
Add /*eslint eqeqeq: ["error", "smart"]*/
to the first line of your Javascript code to remove the errors.
https://eslint.org/docs/rules/eqeqeq
Following Mohammad's solution will turn off ESLint for syntax checking. This works in VS2015 and should work in later versions.
For Visual Studio 2019.
Then unchecked ESLint check box. Please The bellow Image for reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With