-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Version: 5.7.0 - 5.7.2
Starting with 5.7.0, this component
static const compare = (a: number, b: number): string => {
if (a < b) {
return "smaller";
} else {
return "larger";
}
};
now gives an error with prettier:
[error] > 1 | static const compare = (a: number, b: number): string => {
[error] | ^ Mismatched group. A ")" character was found when ">" was expected.
[error] 2 | if (a < b) {
[error] 3 | return "abc";
[error] 4 | } else {
It was fine in 5.6.2.
Metadata
Metadata
Assignees
Labels
No labels