[TS] Make compiler checks a bit more aggressive, fix indentation