In my current Typescript project, I have defined an interface called CurrencyAmountProps.
interface CurrencyAmountProps {
value: number;
currency: string;
}
To format my Typescript files, I am using a command line tool called prettier-standard
.
The issue I am facing is that when I run the prettier-standard
command, it removes semicolons after the value
and currency
lines in the interface definition.
Although this is technically valid in Typescript, it causes problems when I try to extract formatted messages using react-intl-cra
.
I am looking for a way to exempt interfaces from having their semicolons removed by prettier-standard
. How can I achieve this?