Skip to content

Commit

Permalink
chore(lint): update linter to follow angular lint file
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa committed Oct 20, 2017
1 parent 899d874 commit 3429ed0
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/app/@theme/components/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SearchInputComponent {

@Output() search: EventEmitter<string> = new EventEmitter<string>();

isInputShown: boolean = false;
isInputShown = false;

showInput() {
this.isInputShown = true;
Expand Down
2 changes: 1 addition & 1 deletion src/app/@theme/layouts/sample/sample.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
24 changes: 12 additions & 12 deletions src/app/pages/components/notifications/notifications.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand All @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ElectricityComponent implements OnDestroy {

data: Array<any>;

type: string = 'week';
type = 'week';
types = ['week', 'month', 'year'];

currentTheme: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class SecurityCamerasComponent {
title: 'Log out',
}];

isSingleView: boolean = false;
isSingleView = false;

selectCamera(camera: any) {
this.selectedCamera = camera;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/dashboard/solar/solar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export class StatusCardComponent {

@Input() title: string;
@Input() type: string;
@Input() on: boolean = true;
@Input() on = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

value: number = 50;
@Input() disableArcColor = '#999999';
@Input() bottomAngle = 90;
@Input() arcThickness = 18; // CSS pixels
@Input() thumbRadius = 16; // CSS pixels
@Input() thumbBorder = 3;
@Input() maxLeap = 0.4;

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>();
Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/app/pages/dashboard/temperature/temperature.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/dashboard/traffic/traffic-chart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/dashboard/traffic/traffic.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/forms/form-inputs/form-inputs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import { Component } from '@angular/core';
})
export class FormInputsComponent {

starRate: number = 2;
heartRate: number = 4;
starRate = 2;
heartRate = 4;
}
4 changes: 2 additions & 2 deletions src/app/pages/maps/gmaps/gmaps.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NbThemeService } from '@nebular/theme';
})
export class HeroButtonComponent implements OnDestroy {

themeName: string = 'default';
themeName = 'default';
settings: Array<any>;
themeSubscription: any;

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/ui-features/modals/modal/modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`;

Expand Down
13 changes: 10 additions & 3 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"forin": true,
"import-blacklist": [
true,
"rxjs"
"rxjs",
"rxjs/Rx"
],
"import-spacing": true,
"indent": [
Expand All @@ -33,7 +34,7 @@
"label-position": true,
"max-line-length": [
true,
120
140
],
"member-access": false,
"no-arg": true,
Expand All @@ -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,
Expand All @@ -77,6 +82,7 @@
],
"radix": true,
"semicolon": [
true,
"always"
],
"triple-equals": [
Expand Down Expand Up @@ -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,
Expand All @@ -128,4 +135,4 @@
"templates-use-public": true,
"invoke-injectable": true
}
}
}

0 comments on commit 3429ed0

Please sign in to comment.