-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency
Description
Environments:
- Prettier Version: 1.18.2
- Running Prettier via: CLI
Steps to reproduce:
I was able to reproduce in the playground when using the typescript parser, which I guess it's the parser that ends up being used by prettier in typescript files? In my case its happening for both .ts and .tsx file extensions.
Expected behavior: does not throw "Expression expected" syntax error when using optional chaining in typescript files
Actual behavior: throw "Expression expected" syntax error when using optional chaining in typescript files
ycmjason, esamattis, jamesmbourne, jthomaschewski, mikaello and 96 more
Metadata
Metadata
Assignees
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency