-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Environments:
- Prettier Version: 3.1.0
- Running Prettier via: VS Code plugin (
esbenp.prettier-vscode), also via ESLint and[email protected] - Runtime: Node.js v21.2.0
- Operating System: Dev Container based on Alpine Linux 3.18.4
- Prettier plugins (if any): –
Steps to reproduce:
Process the file
import packageInfo from "../../package.json" with { type: "json" };with TypeScript parser.
https://prettier.io/playground/…
Expected behavior:
No errors
Actual behavior:
SyntaxError: ';' expected. (1:46)
nitsky, carlansley, Danones, almeidx and kachkaev
Metadata
Metadata
Assignees
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.