Categories
TypeScript Answers

How to disable TypeScript warnings in VS Code?

Spread the love

Sometimes, we want to disable TypeScript warnings in VS Code.

In this article, we’ll look at how to disable TypeScript warnings in VS Code.

How to disable TypeScript warnings in VS Code?

To disable TypeScript warnings in VS Code, we can set a few options in our VS Code settings to disable them.

For instance, we add

{
  //...
  "typescript.validate.enable": false,
  "javascript.validate.enable": false
  //...
}

in our settings.json file to disable TypeScript and JavaScript warnings by setting typescript.validate.enable and javascript.validate.enable to false respectively.

Conclusion

To disable TypeScript warnings in VS Code, we can set a few options in our VS Code settings to disable them.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *