The issue here is that 2 rules are applied at the same time:
export default
requires to have a semicoloninterface
requires to get rid of a semicolon
The fix here would be to split the declaration of the interface from the export statement like so:
interface Departure {
line: string;
direction: string;
time: Date;
}
export default Departure;
I didn’t come up with the answer myself. Source was this submitted issue