diff --git a/src/app/@theme/components/theme-settings/theme-settings.component.ts b/src/app/@theme/components/theme-settings/theme-settings.component.ts index 9cd60fed..38a50ad5 100644 --- a/src/app/@theme/components/theme-settings/theme-settings.component.ts +++ b/src/app/@theme/components/theme-settings/theme-settings.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; import { StateService } from '../../../@core/data/state.service'; diff --git a/src/app/pages/dashboard/contacts/contacts.component.ts b/src/app/pages/dashboard/contacts/contacts.component.ts index 95a0bcea..148cf505 100644 --- a/src/app/pages/dashboard/contacts/contacts.component.ts +++ b/src/app/pages/dashboard/contacts/contacts.component.ts @@ -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; }); diff --git a/src/app/pages/dashboard/electricity/electricity.component.ts b/src/app/pages/dashboard/electricity/electricity.component.ts index 5879cf71..6f5534bc 100644 --- a/src/app/pages/dashboard/electricity/electricity.component.ts +++ b/src/app/pages/dashboard/electricity/electricity.component.ts @@ -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; diff --git a/src/app/pages/dashboard/rooms/rooms.component.ts b/src/app/pages/dashboard/rooms/rooms.component.ts index d89aa2d8..0b151560 100644 --- a/src/app/pages/dashboard/rooms/rooms.component.ts +++ b/src/app/pages/dashboard/rooms/rooms.component.ts @@ -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; }); diff --git a/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts b/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts index 2dc06a2c..77f50faf 100644 --- a/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts +++ b/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts @@ -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(); diff --git a/src/app/pages/ui-features/buttons/block-level-buttons/block-level-buttons.component.ts b/src/app/pages/ui-features/buttons/block-level-buttons/block-level-buttons.component.ts index 1a9dc910..d7f1a7fd 100644 --- a/src/app/pages/ui-features/buttons/block-level-buttons/block-level-buttons.component.ts +++ b/src/app/pages/ui-features/buttons/block-level-buttons/block-level-buttons.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'ngx-block-level-buttons', diff --git a/src/app/pages/ui-features/typography/typography.component.ts b/src/app/pages/ui-features/typography/typography.component.ts index a602e795..73560d9d 100644 --- a/src/app/pages/ui-features/typography/typography.component.ts +++ b/src/app/pages/ui-features/typography/typography.component.ts @@ -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; }); diff --git a/src/main.ts b/src/main.ts index 2dc3082c..2569163d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -14,4 +14,4 @@ if (environment.production) { } platformBrowserDynamic().bootstrapModule(AppModule) - .catch(err => console.info(err)); + .catch(err => console.log(err)); diff --git a/tslint.json b/tslint.json index 892922b0..f4325314 100644 --- a/tslint.json +++ b/tslint.json @@ -17,13 +17,11 @@ true, "check-space" ], - "curly": true, "eofline": true, "forin": true, "import-blacklist": [ true, - "rxjs", - "rxjs/Rx" + "rxjs" ], "import-spacing": true, "indent": [ @@ -34,14 +32,14 @@ "label-position": true, "max-line-length": [ true, - 140 + 120 ], "member-access": false, "no-arg": true, "no-console": [ true, "debug", - "log", + "info", "time", "timeEnd", "trace" @@ -52,10 +50,6 @@ "no-empty": false, "no-empty-interface": true, "no-eval": true, - "no-inferrable-types": [ - true, - "ignore-params" - ], "no-misused-new": true, "no-non-null-assertion": true, "no-shadowed-variable": true, @@ -64,7 +58,6 @@ "no-switch-case-fall-through": true, "no-trailing-whitespace": true, "no-unnecessary-initializer": true, - "no-unused-expression": true, "no-use-before-declare": true, "no-var-keyword": true, "object-literal-sort-keys": false, @@ -125,7 +118,6 @@ "use-input-property-decorator": true, "use-output-property-decorator": true, "use-host-property-decorator": true, - "no-input-rename": true, "no-output-rename": true, "use-life-cycle-interface": true, "use-pipe-transform-interface": true, @@ -133,6 +125,8 @@ "directive-class-suffix": true, "no-access-missing-member": true, "templates-use-public": true, - "invoke-injectable": true + "invoke-injectable": true, + + "no-unused-variable": true } }