-
-
Notifications
You must be signed in to change notification settings - Fork 925
Closed
Copy link
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
Description
Input
class X {
#selectClause: unknown;
test(columns: unknown) {
(this as any).#selectClause = columns;
}
}Config
Oxfmt output
Oxfmt version: 0.40.0
class X {
#selectClause: unknown;
test(columns: unknown) {
this as any.#selectClause = columns;
}
}Oxfmt playground link
Prettier output
Prettier version: 3.6.2
class X {
#selectClause: unknown;
test(columns: unknown) {
(this as any).#selectClause = columns;
}
}Prettier playground link
Additional notes
oxfmt removes the parentheses around the TypeScript as expression and produces invalid syntax:
- expected valid form:
(this as any).#selectClause = columns; - actual invalid form:
this as any.#selectClause = columns;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
Type
Fields
Give feedbackPriority
None yet
Effort
None yet
{}