#In Visual Studio 2017 (v 15.8.0):
In Visual Studio 2017 (v 15.8.0):
#Option 1: Options > JS Errors
Option 1: Options > JS Errors
- Open
Tools > Options
- Navigate to
Text Editor > JavaScript/TypeScript > Code Validation
- Set
Enable JavaScript errors
tofalse
- or, set
Enable JavaScript errors
totrue
andShow errors as warnings
totrue
I needed to restart Visual Studio for this to take effect.
Option 2: Options > Linting
#Option 2: Options > Linting ThereThere is another option below which will let you edit your global linting settings:
#Option 3: .eslint file
Option 3: .eslint file
You can also create a file named .eslintrc
in the root of your project.
#Option 4: ESLint commands in-file
Option 4: ESLint commands in-file
#Resources