lint fix demo shell

This commit is contained in:
Eugenio Romano 2017-10-06 19:46:18 +01:00
parent c9c5a1318e
commit 9597afb3d5
7 changed files with 16 additions and 14 deletions

View File

@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { DataSource } from '@angular/cdk/collections';
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Http } from '@angular/http'; import { Http } from '@angular/http';
import { AlfrescoAuthenticationService, AppConfigService, BpmProductVersionModel, DiscoveryApiService, EcmProductVersionModel } from 'ng2-alfresco-core'; import { AlfrescoAuthenticationService, AppConfigService, BpmProductVersionModel, DiscoveryApiService, EcmProductVersionModel } from 'ng2-alfresco-core';

View File

@ -47,7 +47,7 @@ export class SettingsComponent {
} }
public onChangeECMHost(event: KeyboardEvent): void { public onChangeECMHost(event: KeyboardEvent): void {
let value = (<HTMLInputElement>event.target).value.trim(); let value = (<HTMLInputElement> event.target).value.trim();
if (value && this.isValidUrl(value)) { if (value && this.isValidUrl(value)) {
this.logService.info(`ECM host: ${value}`); this.logService.info(`ECM host: ${value}`);
this.ecmHostTmp = value; this.ecmHostTmp = value;
@ -57,7 +57,7 @@ export class SettingsComponent {
} }
public onChangeBPMHost(event: KeyboardEvent): void { public onChangeBPMHost(event: KeyboardEvent): void {
let value = (<HTMLInputElement>event.target).value.trim(); let value = (<HTMLInputElement> event.target).value.trim();
if (value && this.isValidUrl(value)) { if (value && this.isValidUrl(value)) {
this.logService.info(`BPM host: ${value}`); this.logService.info(`BPM host: ${value}`);
this.bpmHostTmp = value; this.bpmHostTmp = value;

View File

@ -1,4 +1,4 @@
import {Injectable} from '@angular/core'; import { Injectable } from '@angular/core';
/** /**
* Class for managing stylesheets. Stylesheets are loaded into named slots so that they can be * Class for managing stylesheets. Stylesheets are loaded into named slots so that they can be

View File

@ -1,11 +1,11 @@
import {CommonModule} from '@angular/common'; import { CommonModule } from '@angular/common';
import {ChangeDetectionStrategy, Component, NgModule} from '@angular/core'; import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { import {
MdButtonModule, MdGridListModule, MdIconModule, MdMenuModule, MdButtonModule, MdGridListModule, MdIconModule, MdMenuModule,
MdTooltipModule MdTooltipModule
} from '@angular/material'; } from '@angular/material';
import {StyleManager} from './style-manager/style-manager'; import { StyleManager } from './style-manager/style-manager';
import {DocsSiteTheme, ThemeStorage} from './theme-storage/theme-storage'; import { DocsSiteTheme, ThemeStorage } from './theme-storage/theme-storage';
@Component({ @Component({
selector: 'theme-picker', selector: 'theme-picker',

View File

@ -1,4 +1,4 @@
import {EventEmitter, Injectable} from '@angular/core'; import { EventEmitter, Injectable } from '@angular/core';
export interface DocsSiteTheme { export interface DocsSiteTheme {
href: string; href: string;

View File

@ -29,7 +29,7 @@ export class DebugAppConfigService extends AppConfigService {
/** @override */ /** @override */
get<T>(key: string): T { get<T>(key: string): T {
if (key === 'ecmHost' || key === 'bpmHost') { if (key === 'ecmHost' || key === 'bpmHost') {
return <T>(<any>this.storage.getItem(key) || super.get<T>(key)); return <T> (<any> this.storage.getItem(key) || super.get<T>(key));
} }
return super.get<T>(key); return super.get<T>(key);
} }

View File

@ -128,7 +128,10 @@
"check-decl", "check-decl",
"check-operator", "check-operator",
"check-separator", "check-separator",
"check-type" "check-typecast",
"check-type",
"check-typecast",
"check-module"
], ],
"ordered-imports": true, "ordered-imports": true,
"use-input-property-decorator": true, "use-input-property-decorator": true,
@ -136,10 +139,10 @@
"use-host-property-decorator": false, "use-host-property-decorator": false,
"use-life-cycle-interface": true, "use-life-cycle-interface": true,
"use-pipe-transform-interface": true, "use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"no-access-missing-member": false, "no-access-missing-member": false,
"templates-use-public": true, "templates-use-public": true,
"invoke-injectable": true "invoke-injectable": true,
"component-class-suffix": true,
"directive-class-suffix": true
} }
} }