Skip to main content
Commonmark migration
Source Link

#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

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

Option 2: Options > Linting

#Option 2: Options > Linting ThereThere is another option below which will let you edit your global linting settings:

Options > JS Linting

#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

See @user9153924's answer


#Resources

Resources

#In Visual Studio 2017 (v 15.8.0):

#Option 1: Options > JS Errors

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

#Option 2: Options > Linting There is another option below which will let you edit your global linting settings:

Options > JS Linting

#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

In Visual Studio 2017 (v 15.8.0):

Option 1: Options > JS Errors

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

Option 2: Options > Linting

There is another option below which will let you edit your global linting settings:

Options > JS Linting

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

added more options; added resources
Source Link
Brad
  • 15.5k
  • 6
  • 38
  • 58

#In Visual Studio 2017 (v 15.8.0):

#Option 1: Options > JS Errors

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

#Option 2: Options > Linting There is another option below which will let you edit your global linting settings:

Options > JS Linting

A complete list of linting rules for JS#Option 3: can be found here.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

#In Visual Studio 2017 (v 15.8.0):

#Option 1: JS Errors

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

#Option 2: Linting There is another option below which will let you edit your global linting settings:

Options > JS Linting

A complete list of linting rules for JS can be found here.

#In Visual Studio 2017 (v 15.8.0):

#Option 1: Options > JS Errors

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

#Option 2: Options > Linting There is another option below which will let you edit your global linting settings:

Options > JS Linting

#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

Source Link
Brad
  • 15.5k
  • 6
  • 38
  • 58

#In Visual Studio 2017 (v 15.8.0):

#Option 1: JS Errors

  1. Open Tools > Options
  2. Navigate to Text Editor > JavaScript/TypeScript > Code Validation
  3. Set Enable JavaScript errors to false
  4. or, set Enable JavaScript errors to true and Show errors as warnings to true

I needed to restart Visual Studio for this to take effect.

Options > JS Errors

#Option 2: Linting There is another option below which will let you edit your global linting settings:

Options > JS Linting

A complete list of linting rules for JS can be found here.