mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-21 21:40:49 +02:00
chore(lint): update linter to follow angular lint file
This commit is contained in:
parent
899d874cdd
commit
3429ed0a8d
17 changed files with 53 additions and 46 deletions
|
@ -12,7 +12,7 @@ import { AnalyticsService } from '../../../@core/utils/analytics.service';
|
|||
export class HeaderComponent implements OnInit {
|
||||
|
||||
|
||||
@Input() position: string = 'normal';
|
||||
@Input() position = 'normal';
|
||||
|
||||
user: any;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ export class SearchInputComponent {
|
|||
|
||||
@Output() search: EventEmitter<string> = new EventEmitter<string>();
|
||||
|
||||
isInputShown: boolean = false;
|
||||
isInputShown = false;
|
||||
|
||||
showInput() {
|
||||
this.isInputShown = true;
|
||||
|
|
|
@ -122,7 +122,7 @@ export class SampleLayoutComponent implements OnDestroy {
|
|||
|
||||
this.sidebarState$ = this.stateService.onSidebarState()
|
||||
.subscribe((sidebar: string) => {
|
||||
this.sidebar = sidebar
|
||||
this.sidebar = sidebar;
|
||||
});
|
||||
|
||||
const isBp = this.bpService.getByName('is');
|
||||
|
|
|
@ -13,18 +13,18 @@ export class NotificationsComponent {
|
|||
|
||||
config: ToasterConfig;
|
||||
|
||||
position: string = 'toast-top-right';
|
||||
animationType: string = 'fade';
|
||||
title: string = 'HI there!';
|
||||
content: string = `I'm cool toaster!`;
|
||||
timeout: number = 5000;
|
||||
toastsLimit: number = 5;
|
||||
type: string = 'default';
|
||||
position = 'toast-top-right';
|
||||
animationType = 'fade';
|
||||
title = 'HI there!';
|
||||
content = `I'm cool toaster!`;
|
||||
timeout = 5000;
|
||||
toastsLimit = 5;
|
||||
type = 'default';
|
||||
|
||||
isNewestOnTop: boolean = true;
|
||||
isHideOnClick: boolean = true;
|
||||
isDuplicatesPrevented: boolean = false;
|
||||
isCloseButton: boolean = true;
|
||||
isNewestOnTop = true;
|
||||
isHideOnClick = true;
|
||||
isDuplicatesPrevented = false;
|
||||
isCloseButton = true;
|
||||
|
||||
types: string[] = ['default', 'info', 'success', 'warning', 'error'];
|
||||
animations: string[] = ['fade', 'flyLeft', 'flyRight', 'slideDown', 'slideUp'];
|
||||
|
@ -49,7 +49,7 @@ export class NotificationsComponent {
|
|||
const quote = this.quotes[quoteIndex];
|
||||
|
||||
this.showToast(type, quote.title, quote.body);
|
||||
};
|
||||
}
|
||||
|
||||
private showToast(type: string, title: string, body: string) {
|
||||
this.config = new ToasterConfig({
|
||||
|
|
|
@ -12,7 +12,7 @@ export class ElectricityComponent implements OnDestroy {
|
|||
|
||||
data: Array<any>;
|
||||
|
||||
type: string = 'week';
|
||||
type = 'week';
|
||||
types = ['week', 'month', 'year'];
|
||||
|
||||
currentTheme: string;
|
||||
|
|
|
@ -29,7 +29,7 @@ export class SecurityCamerasComponent {
|
|||
title: 'Log out',
|
||||
}];
|
||||
|
||||
isSingleView: boolean = false;
|
||||
isSingleView = false;
|
||||
|
||||
selectCamera(camera: any) {
|
||||
this.selectedCamera = camera;
|
||||
|
|
|
@ -22,7 +22,7 @@ declare const echarts: any;
|
|||
})
|
||||
export class SolarComponent implements AfterViewInit, OnDestroy {
|
||||
|
||||
private value: number = 0;
|
||||
private value = 0;
|
||||
|
||||
@Input('chartValue')
|
||||
set chartValue(value: number) {
|
||||
|
|
|
@ -22,5 +22,5 @@ export class StatusCardComponent {
|
|||
|
||||
@Input() title: string;
|
||||
@Input() type: string;
|
||||
@Input() on: boolean = true;
|
||||
@Input() on = true;
|
||||
}
|
||||
|
|
|
@ -14,21 +14,21 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
|
|||
@ViewChild('svgRoot') svgRoot: ElementRef;
|
||||
|
||||
@Input() fillColors: string|string[] = '#2ec6ff';
|
||||
@Input() disableArcColor: string = '#999999';
|
||||
@Input() bottomAngle: number = 90;
|
||||
@Input() arcThickness: number = 18; // CSS pixels
|
||||
@Input() thumbRadius: number = 16; // CSS pixels
|
||||
@Input() thumbBorder: number = 3;
|
||||
@Input() maxLeap: number = 0.4;
|
||||
@Input() disableArcColor = '#999999';
|
||||
@Input() bottomAngle = 90;
|
||||
@Input() arcThickness = 18; // CSS pixels
|
||||
@Input() thumbRadius = 16; // CSS pixels
|
||||
@Input() thumbBorder = 3;
|
||||
@Input() maxLeap = 0.4;
|
||||
|
||||
value: number = 50;
|
||||
value = 50;
|
||||
@Output('valueChange') valueChange = new EventEmitter<Number>();
|
||||
@Input('value') set setValue(value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Input() min: number = 0; // min output value
|
||||
@Input() max: number = 100; // max output value
|
||||
@Input() min = 0; // min output value
|
||||
@Input() max = 100; // max output value
|
||||
@Input() step = 0.1;
|
||||
|
||||
@Output() power = new EventEmitter<boolean>();
|
||||
|
@ -49,13 +49,13 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
|
|||
this.invalidate();
|
||||
}
|
||||
|
||||
off: boolean = false;
|
||||
off = false;
|
||||
oldValue: number;
|
||||
|
||||
svgControlId = new Date().getTime();
|
||||
scaleFactor: number = 1;
|
||||
scaleFactor = 1;
|
||||
bottomAngleRad = 0;
|
||||
radius: number = 100;
|
||||
radius = 100;
|
||||
translateXValue = 0;
|
||||
translateYValue = 0;
|
||||
thickness = 6;
|
||||
|
|
|
@ -8,12 +8,12 @@ import { NbThemeService } from '@nebular/theme';
|
|||
})
|
||||
export class TemperatureComponent implements OnDestroy {
|
||||
|
||||
temperature: number = 24;
|
||||
temperatureOff: boolean = false;
|
||||
temperature = 24;
|
||||
temperatureOff = false;
|
||||
temperatureMode = 'cool';
|
||||
|
||||
humidity: number = 87;
|
||||
humidityOff: boolean = false;
|
||||
humidity = 87;
|
||||
humidityOff = false;
|
||||
humidityMode = 'heat';
|
||||
|
||||
colors: any;
|
||||
|
|
|
@ -14,7 +14,7 @@ const points = [300, 520, 435, 530, 730, 620, 660, 860];
|
|||
})
|
||||
export class TrafficChartComponent implements AfterViewInit, OnDestroy {
|
||||
|
||||
type: string = 'month';
|
||||
type = 'month';
|
||||
types = ['week', 'month', 'year'];
|
||||
option: any = {};
|
||||
themeSubscription: any;
|
||||
|
|
|
@ -25,7 +25,7 @@ import { NbThemeService } from '@nebular/theme';
|
|||
`,
|
||||
})
|
||||
export class TrafficComponent implements OnDestroy {
|
||||
type: string = 'month';
|
||||
type = 'month';
|
||||
types = ['week', 'month', 'year'];
|
||||
currentTheme: string;
|
||||
themeSubscription: any;
|
||||
|
|
|
@ -7,6 +7,6 @@ import { Component } from '@angular/core';
|
|||
})
|
||||
export class FormInputsComponent {
|
||||
|
||||
starRate: number = 2;
|
||||
heartRate: number = 4;
|
||||
starRate = 2;
|
||||
heartRate = 4;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,6 @@ import { Component } from '@angular/core';
|
|||
})
|
||||
export class GmapsComponent {
|
||||
|
||||
lat: number = 51.678418;
|
||||
lng: number = 7.809007;
|
||||
lat = 51.678418;
|
||||
lng = 7.809007;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import { NbThemeService } from '@nebular/theme';
|
|||
})
|
||||
export class HeroButtonComponent implements OnDestroy {
|
||||
|
||||
themeName: string = 'default';
|
||||
themeName = 'default';
|
||||
settings: Array<any>;
|
||||
themeSubscription: any;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|||
export class ModalComponent {
|
||||
|
||||
modalHeader: string;
|
||||
modalContent: string = `Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
|
||||
modalContent = `Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
|
||||
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
|
||||
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.`;
|
||||
|
||||
|
|
13
tslint.json
13
tslint.json
|
@ -22,7 +22,8 @@
|
|||
"forin": true,
|
||||
"import-blacklist": [
|
||||
true,
|
||||
"rxjs"
|
||||
"rxjs",
|
||||
"rxjs/Rx"
|
||||
],
|
||||
"import-spacing": true,
|
||||
"indent": [
|
||||
|
@ -33,7 +34,7 @@
|
|||
"label-position": true,
|
||||
"max-line-length": [
|
||||
true,
|
||||
120
|
||||
140
|
||||
],
|
||||
"member-access": false,
|
||||
"no-arg": true,
|
||||
|
@ -51,6 +52,10 @@
|
|||
"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,
|
||||
|
@ -77,6 +82,7 @@
|
|||
],
|
||||
"radix": true,
|
||||
"semicolon": [
|
||||
true,
|
||||
"always"
|
||||
],
|
||||
"triple-equals": [
|
||||
|
@ -119,6 +125,7 @@
|
|||
"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,
|
||||
|
@ -128,4 +135,4 @@
|
|||
"templates-use-public": true,
|
||||
"invoke-injectable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue