Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax problems with VSCode #381

Open
sscaff1 opened this issue Jul 13, 2023 · 2 comments
Open

Syntax problems with VSCode #381

sscaff1 opened this issue Jul 13, 2023 · 2 comments

Comments

@sscaff1
Copy link

sscaff1 commented Jul 13, 2023

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?

@acutmore
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants