build: update tslint config (#1436)

This commit is contained in:
Lex Zhukov 2017-12-01 18:36:24 +03:00 committed by GitHub
parent be7649a9a2
commit 630cb85e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 23 deletions

View file

@ -1,4 +1,4 @@
import { Component, Input, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import { StateService } from '../../../@core/data/state.service';

View file

@ -20,8 +20,8 @@ export class ContactsComponent implements OnInit, OnDestroy {
private themeService: NbThemeService,
private breakpointService: NbMediaBreakpointsService) {
this.breakpoints = breakpointService.getBreakpointsMap();
this.themeSubscription = themeService.onMediaQueryChange()
this.breakpoints = this.breakpointService.getBreakpointsMap();
this.themeSubscription = this.themeService.onMediaQueryChange()
.subscribe(([oldValue, newValue]) => {
this.breakpoint = newValue;
});

View file

@ -19,7 +19,7 @@ export class ElectricityComponent implements OnDestroy {
themeSubscription: any;
constructor(private eService: ElectricityService, private themeService: NbThemeService) {
this.data = eService.getData();
this.data = this.eService.getData();
this.themeSubscription = this.themeService.getJsTheme().subscribe(theme => {
this.currentTheme = theme.name;

View file

@ -25,8 +25,8 @@ export class RoomsComponent implements OnDestroy {
constructor(private themeService: NbThemeService,
private breakpointService: NbMediaBreakpointsService) {
this.breakpoints = breakpointService.getBreakpointsMap();
this.themeSubscription = themeService.onMediaQueryChange()
this.breakpoints = this.breakpointService.getBreakpointsMap();
this.themeSubscription = this.themeService.onMediaQueryChange()
.subscribe(([oldValue, newValue]) => {
this.breakpoint = newValue;
});

View file

@ -127,7 +127,6 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
this.bottomAngleRad = TemperatureDraggerComponent.toRad(this.bottomAngle);
this.colors = (typeof this.fillColors === 'string') ? [this.fillColors] : this.fillColors;
const baseRadius: number = VIEW_BOX_SIZE / 2;
const halfAngle = this.bottomAngleRad / 2;
const svgBoundingRect = this.svgRoot.nativeElement.getBoundingClientRect();

View file

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-block-level-buttons',

View file

@ -14,8 +14,8 @@ export class TypographyComponent implements OnDestroy {
constructor(private themeService: NbThemeService,
private breakpointService: NbMediaBreakpointsService) {
this.breakpoints = breakpointService.getBreakpointsMap();
this.themeSubscription = themeService.onMediaQueryChange()
this.breakpoints = this.breakpointService.getBreakpointsMap();
this.themeSubscription = this.themeService.onMediaQueryChange()
.subscribe(([oldValue, newValue]) => {
this.breakpoint = newValue;
});

View file

@ -14,4 +14,4 @@ if (environment.production) {
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.info(err));
.catch(err => console.log(err));