Skip to content

Commit

Permalink
mgr/dashboard: Add TSLint rule
Browse files Browse the repository at this point in the history
- TSlint no-unused-variable rule added.
- Cleanup: unused imports and variables.

Signed-off-by: Alfonso Martínez <[email protected]>
  • Loading branch information
alfonsomthd committed Oct 22, 2018
1 parent 4af71e7 commit 8557063
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { ConfigFormModel } from './configuration-form.model';
describe('ConfigurationFormComponent', () => {
let component: ConfigurationFormComponent;
let fixture: ComponentFixture<ConfigurationFormComponent>;
let activatedRoute: ActivatedRoute;

configureTestBed({
imports: [
Expand All @@ -35,7 +34,6 @@ describe('ConfigurationFormComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(ConfigurationFormComponent);
component = fixture.componentInstance;
activatedRoute = TestBed.get(ActivatedRoute);
});

it('should create', () => {
Expand Down
1 change: 1 addition & 0 deletions src/pybind/mgr/dashboard/frontend/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8557063

Please sign in to comment.