8

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.

2 Answers 2

13

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.

Sign up to request clarification or add additional context in comments.

Comments

4

Please note that incase your javascript is written within tags in html, the setting is called "html.validate.scripts": false.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.