mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-21 21:40:49 +02:00
build: update tslint config (#1436)
This commit is contained in:
parent
be7649a9a2
commit
630cb85e3b
9 changed files with 16 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { StateService } from '../../../@core/data/state.service';
|
||||
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-block-level-buttons',
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -14,4 +14,4 @@ if (environment.production) {
|
|||
}
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||
.catch(err => console.info(err));
|
||||
.catch(err => console.log(err));
|
||||
|
|
18
tslint.json
18
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue