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'; import { StateService } from '../../../@core/data/state.service';

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -17,13 +17,11 @@
true, true,
"check-space" "check-space"
], ],
"curly": true,
"eofline": true, "eofline": true,
"forin": true, "forin": true,
"import-blacklist": [ "import-blacklist": [
true, true,
"rxjs", "rxjs"
"rxjs/Rx"
], ],
"import-spacing": true, "import-spacing": true,
"indent": [ "indent": [
@ -34,14 +32,14 @@
"label-position": true, "label-position": true,
"max-line-length": [ "max-line-length": [
true, true,
140 120
], ],
"member-access": false, "member-access": false,
"no-arg": true, "no-arg": true,
"no-console": [ "no-console": [
true, true,
"debug", "debug",
"log", "info",
"time", "time",
"timeEnd", "timeEnd",
"trace" "trace"
@ -52,10 +50,6 @@
"no-empty": false, "no-empty": false,
"no-empty-interface": true, "no-empty-interface": true,
"no-eval": true, "no-eval": true,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-misused-new": true, "no-misused-new": true,
"no-non-null-assertion": true, "no-non-null-assertion": true,
"no-shadowed-variable": true, "no-shadowed-variable": true,
@ -64,7 +58,6 @@
"no-switch-case-fall-through": true, "no-switch-case-fall-through": true,
"no-trailing-whitespace": true, "no-trailing-whitespace": true,
"no-unnecessary-initializer": true, "no-unnecessary-initializer": true,
"no-unused-expression": true,
"no-use-before-declare": true, "no-use-before-declare": true,
"no-var-keyword": true, "no-var-keyword": true,
"object-literal-sort-keys": false, "object-literal-sort-keys": false,
@ -125,7 +118,6 @@
"use-input-property-decorator": true, "use-input-property-decorator": true,
"use-output-property-decorator": true, "use-output-property-decorator": true,
"use-host-property-decorator": true, "use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true, "no-output-rename": true,
"use-life-cycle-interface": true, "use-life-cycle-interface": true,
"use-pipe-transform-interface": true, "use-pipe-transform-interface": true,
@ -133,6 +125,8 @@
"directive-class-suffix": true, "directive-class-suffix": true,
"no-access-missing-member": true, "no-access-missing-member": true,
"templates-use-public": true, "templates-use-public": true,
"invoke-injectable": true "invoke-injectable": true,
"no-unused-variable": true
} }
} }