ESLint demands semicolon and wants it removed at the same time

The issue here is that 2 rules are applied at the same time:

  1. export default requires to have a semicolon
  2. interface 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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)