-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prettier): support typescript enums (#5790)
The last failed test is only because of the comments. the oxc prettier output is: ``` enum Direction { Up = 1, Down, Left, Right, } enum FileAccess { None, Read = // constant members 1 << 1, Write = 1 << 2, ReadWrite = Read | Write, G = // computed member "123".length, } enum Empty {} const enum Enum { A = 1, B = A * 2, } ``` Expected output: https://github.com/prettier/prettier/blob/aa3853b7765645b3f3d8a76e41cf6d70b93c01fd/tests/format/typescript/enum/__snapshots__/format.test.js.snap#L91-L99 Hope you can tell more why this happens :) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d1d54a6
commit 52c6409
Showing
2 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters