]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Add TSLint rule 24699/head
authoralfonsomthd <almartin@redhat.com>
Mon, 22 Oct 2018 17:38:38 +0000 (19:38 +0200)
committeralfonsomthd <almartin@redhat.com>
Mon, 22 Oct 2018 17:38:38 +0000 (19:38 +0200)
- TSlint no-unused-variable rule added.
- Cleanup: unused imports and variables.

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/tslint.json

index 0c44327bfb7fe723bc24d6718a87bb996fc20c39..ccf2a7488717f1817449e994d6a32c5c32dd7e00 100644 (file)
@@ -1,6 +1,5 @@
 import { Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core';
 
-import * as _ from 'lodash';
 import * as moment from 'moment';
 import { BsModalRef, BsModalService } from 'ngx-bootstrap';
 import { of } from 'rxjs';
index cbc89885248a1cda41941b62dc6025e4504c683e..2d369db25b3b1ada40417eb6d3671b6f027b5f7f 100644 (file)
@@ -14,7 +14,6 @@ import { ConfigFormModel } from './configuration-form.model';
 describe('ConfigurationFormComponent', () => {
   let component: ConfigurationFormComponent;
   let fixture: ComponentFixture<ConfigurationFormComponent>;
-  let activatedRoute: ActivatedRoute;
 
   configureTestBed({
     imports: [
@@ -35,7 +34,6 @@ describe('ConfigurationFormComponent', () => {
   beforeEach(() => {
     fixture = TestBed.createComponent(ConfigurationFormComponent);
     component = fixture.componentInstance;
-    activatedRoute = TestBed.get(ActivatedRoute);
   });
 
   it('should create', () => {
index 0f4de926631fcae84d56865aa97fe709549a39f6..ce258f6491398d195d6f17799b003b9f2e13865a 100644 (file)
@@ -41,6 +41,7 @@
     "no-trailing-whitespace": true,
     "no-unnecessary-initializer": true,
     "no-unused-expression": true,
+    "no-unused-variable": true,
     "no-use-before-declare": true,
     "no-var-keyword": true,
     "object-literal-sort-keys": false,