proposal-record-tuple icon indicating copy to clipboard operation
proposal-record-tuple copied to clipboard

Syntax problems with VSCode

Open sscaff1 opened this issue 2 years ago • 2 comments

How do you get the syntax to work with VSCode?

Screenshot 2023-07-13 at 11 23 03 AM

Rollup runs fine. Babel runs fine. Eslint runs fine. It's literally just VSCode.

Also, can this syntax be supported in typescript currently?

sscaff1 avatar Jul 13 '23 16:07 sscaff1

Also, can this syntax be supported in typescript currently?

Hi @sscaff1, this proposal is in Stage 2 of the TC39 proposal which is too early in the design phase for official TypeScript support to be available.

acutmore avatar Jul 14 '23 05:07 acutmore

To suppress the syntax errors in VSCode you can override the "javascript.validate.enable" setting for that workspace.

Some more info here: https://stackoverflow.com/questions/36327096/vscode-linter-es6-es7-babel-linter

acutmore avatar Jul 16 '23 12:07 acutmore