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

SyntaxError: Unexpected keyword or identifier: using -- upgrade to prettier v3 #3564

Open
kasir-barati opened this issue Nov 1, 2024 · 0 comments

Comments

@kasir-barati
Copy link

Summary

We need to upgrade this extension's prettier to latest (ATM v3). It has been added to prettier v3 ages ago: prettier/prettier#15321

Github Repository to Reproduce Issue

Does not need one.

Steps To Reproduce:

  1. Create a TS project.
  2. Configure it to support using syntax.
  3. Create a new TS file.
  4. try to use using syntax in it.

Expected result

Format the code.

Actual result

Error:

SyntaxError: Unexpected keyword or identifier. (5:3)
  3 |
  4 | (async () => {
> 5 |   using repo = new Repo(Prisma.prismaClient);
    |   ^
  6 |
  7 |   await repo.bulkFeeds([]);
  8 | })()

VS Code Version:

Version: 1.92.2
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.1.112-1-MANJARO

Prettier Extension Version:

v11.0.0

OS and version:

6.1.112-1-MANJARO

@kasir-barati kasir-barati changed the title SyntaxError: Unexpected keyword or identifier: using SyntaxError: Unexpected keyword or identifier: using -- upgrade to prettier v3 Nov 1, 2024
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

1 participant