K.. K.. - 1 year ago 127
Javascript Question

Disabling specific error messages for Javascript in VSCode?

I'm using class properties (static and normal) and decorators in JavaScript. Is there a way to either enable other ES stages for code highlighting or disable the specific error messages for them?

VSCode tells me that I can use class properties only in TypeScript, so it seems to recognize them.

Answer Source

You can disable JavaScript build-in validation with "javascript.validate.enable": false in settings.json and then enable either ESLint or JSHint extensions to fine-tune errors and validations. Read more here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download