I'm using TSLint extension for VS Code. I got bunch of [tslint] misplaced 'else' (one-line)
warnings. For example, at the below code sample, linter underlines else word and gives same warning:
Code:
if (user.isAdmin) {
this.uiRouter.stateService.go('app.admin');
}
else {
this.sharedVariables.user = user;
this.navigateByUserType(user);
}
What is the problem with this code?
else
. – Grassplot