From: Tiago Melo Date: Sun, 4 Feb 2018 10:45:59 +0000 (+0100) Subject: mgr/dashboard_v2: add tslint import linting rule X-Git-Tag: v13.0.2~84^2~97 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=80b7d1411dd92285c74ee5b4a7efb00ad0f89ce1;p=ceph.git mgr/dashboard_v2: add tslint import linting rule Signed-off-by: Tiago Melo --- diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts index 1b15ceac9bdd5..628d5b54c2ded 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts @@ -1,8 +1,9 @@ import { NgModule } from '@angular/core'; -import { Routes, RouterModule } from '@angular/router'; -import { AuthGuardService } from './shared/services/auth-guard.service'; -import { LoginComponent } from './core/auth/login/login.component'; +import { RouterModule, Routes } from '@angular/router'; + import { HostsComponent } from './ceph/cluster/hosts/hosts.component'; +import { LoginComponent } from './core/auth/login/login.component'; +import { AuthGuardService } from './shared/services/auth-guard.service'; const routes: Routes = [ { path: '', redirectTo: 'hosts', pathMatch: 'full' }, diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts index a68678ca811fc..88ddd4562d50c 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts @@ -1,10 +1,12 @@ -import { TestBed, async } from '@angular/core/testing'; +import { async, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; + +import { ToastModule } from 'ng2-toastr'; + import { AppComponent } from './app.component'; +import { ClusterModule } from './ceph/cluster/cluster.module'; import { CoreModule } from './core/core.module'; import { SharedModule } from './shared/shared.module'; -import { ToastModule } from 'ng2-toastr'; -import { ClusterModule } from './ceph/cluster/cluster.module'; describe('AppComponent', () => { beforeEach(async(() => { diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.ts index c08b7b9e7b4d2..c9e0e7e8773b3 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.ts @@ -1,8 +1,10 @@ import { Component, ViewContainerRef } from '@angular/core'; -import { AuthStorageService } from './shared/services/auth-storage.service'; -import { ToastsManager } from 'ng2-toastr'; import { Router } from '@angular/router'; +import { ToastsManager } from 'ng2-toastr'; + +import { AuthStorageService } from './shared/services/auth-storage.service'; + @Component({ selector: 'cd-root', templateUrl: './app.component.html', diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.module.ts index 6bd89ae34b149..99186e5394fab 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.module.ts @@ -1,17 +1,16 @@ -import { BrowserModule } from '@angular/platform-browser'; +import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; - -import { AppRoutingModule } from './app-routing.module'; +import { BrowserModule } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ToastModule, ToastOptions } from 'ng2-toastr/ng2-toastr'; +import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; -import { CoreModule } from './core/core.module'; -import { SharedModule } from './shared/shared.module'; import { CephModule } from './ceph/ceph.module'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; +import { CoreModule } from './core/core.module'; import { AuthInterceptorService } from './shared/services/auth-interceptor.service'; +import { SharedModule } from './shared/shared.module'; export class CustomOption extends ToastOptions { animate = 'flyRight'; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts index 74a88bd9b89e6..af7e4662721bf 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts @@ -1,5 +1,6 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; + import { ClusterModule } from './cluster/cluster.module'; @NgModule({ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts index 439f18414a214..3069a362c77eb 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts @@ -1,8 +1,8 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; -import { HostsComponent } from './hosts/hosts.component'; import { SharedModule } from '../../shared/shared.module'; +import { HostsComponent } from './hosts/hosts.component'; import { ServiceListPipe } from './service-list.pipe'; @NgModule({ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts index 2f294d7a3b37f..476abb7fb8818 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts @@ -1,9 +1,9 @@ +import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { HostsComponent } from './hosts.component'; -import { ServiceListPipe } from '../service-list.pipe'; import { SharedModule } from '../../../shared/shared.module'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { ServiceListPipe } from '../service-list.pipe'; +import { HostsComponent } from './hosts.component'; describe('HostsComponent', () => { let component: HostsComponent; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.ts index 99e4aea3b173d..e671565a920ae 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; + import { HostService } from '../../../shared/services/host.service'; @Component({ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/auth.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/auth.module.ts index 51254ba767e69..924f164a3d70b 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/auth.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/auth.module.ts @@ -1,5 +1,5 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { LoginComponent } from './login/login.component'; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.spec.ts index 5ba4db168e3a3..b8307b594e815 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.spec.ts @@ -1,12 +1,13 @@ +import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { LoginComponent } from './login.component'; import { FormsModule } from '@angular/forms'; -import { SharedModule } from '../../../shared/shared.module'; import { RouterTestingModule } from '@angular/router/testing'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; + import { ToastModule } from 'ng2-toastr'; +import { SharedModule } from '../../../shared/shared.module'; +import { LoginComponent } from './login.component'; + describe('LoginComponent', () => { let component: LoginComponent; let fixture: ComponentFixture; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.ts index 53e7f18749a2c..e68609f714f6c 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.ts @@ -1,10 +1,12 @@ import { Component, OnInit, ViewContainerRef } from '@angular/core'; -import { Credentials } from '../../../shared/models/credentials.model'; -import { AuthService } from '../../../shared/services/auth.service'; -import { AuthStorageService } from '../../../shared/services/auth-storage.service'; import { Router } from '@angular/router'; + import { ToastsManager } from 'ng2-toastr'; +import { Credentials } from '../../../shared/models/credentials.model'; +import { AuthStorageService } from '../../../shared/services/auth-storage.service'; +import { AuthService } from '../../../shared/services/auth.service'; + @Component({ selector: 'cd-login', templateUrl: './login.component.html', diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.spec.ts index 960f0ef065ff6..318ca820af2d3 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.spec.ts @@ -1,9 +1,9 @@ +import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { RouterTestingModule } from '@angular/router/testing'; -import { LogoutComponent } from './logout.component'; import { SharedModule } from '../../../shared/shared.module'; -import { RouterTestingModule } from '@angular/router/testing'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { LogoutComponent } from './logout.component'; describe('LogoutComponent', () => { let component: LogoutComponent; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.ts index 3d94542b3efa4..4bf11e368712b 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; + import { AuthService } from '../../../shared/services/auth.service'; @Component({ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/core.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/core.module.ts index 462806eee038d..cbd40c6610a13 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/core.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/core.module.ts @@ -1,7 +1,8 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { NavigationModule } from './navigation/navigation.module'; +import { NgModule } from '@angular/core'; + import { AuthModule } from './auth/auth.module'; +import { NavigationModule } from './navigation/navigation.module'; @NgModule({ imports: [ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation.module.ts index 861a129450f14..823d4feea1849 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation.module.ts @@ -1,11 +1,13 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { NavigationComponent } from './navigation/navigation.component'; -import { AuthModule } from '../auth/auth.module'; +import { NgModule } from '@angular/core'; +import { RouterModule } from '@angular/router'; + import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; + import { AppRoutingModule } from '../../app-routing.module'; import { SharedModule } from '../../shared/shared.module'; -import { RouterModule } from '@angular/router'; +import { AuthModule } from '../auth/auth.module'; +import { NavigationComponent } from './navigation/navigation.component'; @NgModule({ imports: [ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation/navigation.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation/navigation.component.spec.ts index aca8268568b43..7548b2bd7c1ff 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation/navigation.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/core/navigation/navigation/navigation.component.spec.ts @@ -1,10 +1,10 @@ +import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { NavigationComponent } from './navigation.component'; -import { LogoutComponent } from '../../auth/logout/logout.component'; import { RouterTestingModule } from '@angular/router/testing'; + import { SharedModule } from '../../../shared/shared.module'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { LogoutComponent } from '../../auth/logout/logout.component'; +import { NavigationComponent } from './navigation.component'; describe('NavigationComponent', () => { let component: NavigationComponent; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/components.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/components.module.ts index 7baba7a533715..d818d927e13fc 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/components.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/components.module.ts @@ -1,9 +1,11 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { TableComponent } from './table/table.component'; -import { NgxDatatableModule } from '@swimlane/ngx-datatable'; +import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; + +import {NgxDatatableModule} from '@swimlane/ngx-datatable'; + import { TableDetailsDirective } from './table/table-details.directive'; -import {FormsModule} from '@angular/forms'; +import { TableComponent } from './table/table.component'; @NgModule({ entryComponents: [], diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.spec.ts index c063b01657893..d20303ee6a85f 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.spec.ts @@ -1,8 +1,9 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import {FormsModule} from '@angular/forms'; -import { TableComponent } from './table.component'; import {NgxDatatableModule, TableColumn} from '@swimlane/ngx-datatable'; -import {FormsModule} from '@angular/forms'; + +import { TableComponent } from './table.component'; describe('TableComponent', () => { let component: TableComponent; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.ts index 6751ac9a015df..20bc2bda87514 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/table/table.component.ts @@ -1,7 +1,9 @@ import { - Component, EventEmitter, OnInit, Input, Output, ViewChild, OnChanges, ComponentFactoryResolver, Type + Component, ComponentFactoryResolver, EventEmitter, Input, OnChanges, OnInit, Output, Type, ViewChild } from '@angular/core'; + import {DatatableComponent, TableColumn} from '@swimlane/ngx-datatable'; + import {TableDetailsDirective} from './table-details.directive'; @Component({ @@ -16,7 +18,7 @@ export class TableComponent implements OnInit, OnChanges { @Input() data: any[]; // This is the array with the items to be shown @Input() columns: TableColumn[]; // each item -> { prop: 'attribute name', name: 'display name' } @Input() detailsComponent?: string; // name of the component fe 'TableDetailsComponent' - @Input() header? = true; + @Input() header ? = true; @Output() fetchData = new EventEmitter(); // Should be the function that will update the input data diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/pipes/pipes.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/pipes/pipes.module.ts index ff80c3b7e9bcf..9f9ed4077c3e5 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/pipes/pipes.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/pipes/pipes.module.ts @@ -1,5 +1,6 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; + import { CephShortVersionPipe } from './ceph-short-version.pipe'; @NgModule({ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-guard.service.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-guard.service.ts index 3d2cffb9f44fa..a3ec803870325 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-guard.service.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-guard.service.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; +import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router'; + import { AuthStorageService } from './auth-storage.service'; @Injectable() diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-interceptor.service.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-interceptor.service.ts index a0640acc4c8aa..b609d14cc860c 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-interceptor.service.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth-interceptor.service.ts @@ -1,14 +1,16 @@ -import { Injectable } from '@angular/core'; -import { AuthStorageService } from './auth-storage.service'; import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http'; -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/operator/do'; -import { ToastsManager } from 'ng2-toastr'; +import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; +import { ToastsManager } from 'ng2-toastr'; +import 'rxjs/add/operator/do'; +import { Observable } from 'rxjs/Observable'; + +import { AuthStorageService } from './auth-storage.service'; + @Injectable() export class AuthInterceptorService implements HttpInterceptor { diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth.service.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth.service.ts index 30706abea4ed9..b8d58533c0aa8 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth.service.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/services/auth.service.ts @@ -1,5 +1,6 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; + import { Credentials } from '../models/credentials.model'; import { AuthStorageService } from './auth-storage.service'; diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/shared.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/shared.module.ts index 083e658c60224..d81541869684d 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/shared.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/shared/shared.module.ts @@ -1,11 +1,12 @@ -import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { AuthService } from './services/auth.service'; -import { AuthStorageService } from './services/auth-storage.service'; -import { AuthGuardService } from './services/auth-guard.service'; +import { NgModule } from '@angular/core'; + +import { ComponentsModule } from './components/components.module'; import { PipesModule } from './pipes/pipes.module'; +import { AuthGuardService } from './services/auth-guard.service'; +import { AuthStorageService } from './services/auth-storage.service'; +import { AuthService } from './services/auth.service'; import { HostService } from './services/host.service'; -import { ComponentsModule } from './components/components.module'; @NgModule({ imports: [ diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts b/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts index 8586e14afafbc..314c7505e678f 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/polyfills.ts @@ -19,20 +19,20 @@ */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ -import 'core-js/es6/symbol'; -import 'core-js/es6/object'; +import 'core-js/es6/array'; +import 'core-js/es6/date'; import 'core-js/es6/function'; -import 'core-js/es6/parse-int'; -import 'core-js/es6/parse-float'; -import 'core-js/es6/number'; +import 'core-js/es6/map'; import 'core-js/es6/math'; -import 'core-js/es6/string'; -import 'core-js/es6/date'; -import 'core-js/es6/array'; +import 'core-js/es6/number'; +import 'core-js/es6/object'; +import 'core-js/es6/parse-float'; +import 'core-js/es6/parse-int'; import 'core-js/es6/regexp'; -import 'core-js/es6/map'; -import 'core-js/es6/weak-map'; import 'core-js/es6/set'; +import 'core-js/es6/string'; +import 'core-js/es6/symbol'; +import 'core-js/es6/weak-map'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/test.ts b/src/pybind/mgr/dashboard_v2/frontend/src/test.ts index cd612eeb0e2f2..19beece05c8cf 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/test.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/test.ts @@ -1,3 +1,4 @@ +/* tslint:disable:ordered-imports */ // This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/dist/long-stack-trace-zone'; diff --git a/src/pybind/mgr/dashboard_v2/frontend/tslint.json b/src/pybind/mgr/dashboard_v2/frontend/tslint.json index 34c2b8f0ed88c..4c437d2d836e0 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/tslint.json +++ b/src/pybind/mgr/dashboard_v2/frontend/tslint.json @@ -144,6 +144,7 @@ "component-class-suffix": true, "directive-class-suffix": true, "no-forward-ref": true, - "no-output-named-after-standard-event": true + "no-output-named-after-standard-event": true, + "ordered-imports": true } }