title: variable used before declaration
body: <p>I generated my project using angular-cli which version is <code>1.0.0-beta.28.3</code>.<br>
  I write in the terminal a command <code>ng lint</code> and get big amount errors:</p>
  
  <p><a href="https://i.stack.imgur.com/mVZ1b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mVZ1b.png" alt="enter image description here"></a></p>
  
  <p>I haven't any ideas why I get such amount errors after running <code>ng lint</code> .</p>
  
  <p>Below code of <code>machines.component.ts</code>:  </p>
  
  <pre><code>import { Component, OnDestroy, OnInit } from '@angular/core';
  import { Response } from '@angular/http';
  import { Observable } from 'rxjs/Observable';
  import { DialogService } from 'ng2-bootstrap-modal';
  
  import { ModalComponent } from '../modal/modal.component';
  import { MachineService } from '../services/machine.service';
  import { Machine } from '../models/machine.model';
  import { BoxService } from '../services/box.service';
  import { Box } from '../models/box.model';
  import { AppConfig } from '../app.config';
  
  @Component({
    selector: 'app-machines',
    templateUrl: './machines.component.html',
    styleUrls: ['./machines.component.scss']
  })
  export class MachinesComponent implements OnInit, OnDestroy {
  
    private display: boolean;
    private alive: boolean;
    private timer: Observable&lt;number&gt;;
    machines: Machine [];
    box: Box;
  
    constructor(
      private dialogService: DialogService,
      private boxService: BoxService,
      private machineService: MachineService,
      private appConfig: AppConfig) {
      this.display = false;
      this.alive = true;
      this.timer = Observable.timer(0, this.appConfig.interval_requests);
    }
  
    ngOnInit() {
      this.timer
        .takeWhile(() =&gt; this.alive)
        .subscribe(() =&gt; {
          this.machineService.getStatesMachines().subscribe(
            (res: Response) =&gt; {
              this.machines = res.json();
  
              if (!this.display) {
                this.display = true;
              }
            }
          );
        }
      );
    }
  
    ngOnDestroy() {
      this.alive = false;
    }
  
    getBox(device_name: string) {
      this.boxService.getBox(device_name).subscribe(
        (res: Response) =&gt; {
          const box = res.json();
          this.box = box;
  
          this.dialogService.addDialog(ModalComponent, {
            device_name: this.box.device_name + '`s info',
            name: this.box.name,
            timestamp: this.box.timestamp,
            ip_address: this.box.ip_address
          }, {closeByClickingOutside: true});
        }
      );
    }
  
  }
  </code></pre>
  
  <p>When project was generated I didn't change any properties in <code>tslint.json</code>. Default, <code>"no-use-before-declare": true</code>. </p>
  
  <p>I searched the answers at Github and at Stackoverflow, but didn't find. Perhaps, I searched it badly if so far didn't find.<br>
   Please, help me.  </p>