Skip to content

Commit 2636aed

Browse files
authored
Merge pull request #99 from zvonimirfras/master
chore: improve lint rules; remove unused imports
2 parents dbf52d6 + fe460b9 commit 2636aed

24 files changed

+44
-47
lines changed

src/button-menu/button-menu-item.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("Button Menu", () => {
3535
provide: TranslateLoader, useClass: TranslateFakeLoader
3636
}
3737
})
38-
],
38+
]
3939
});
4040
});
4141

src/checkbox/checkbox.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export { CheckboxComponent } from "./checkbox.component";
1111

1212
@NgModule({
1313
declarations: [
14-
CheckboxComponent,
14+
CheckboxComponent
1515
],
1616
exports: [
17-
CheckboxComponent,
17+
CheckboxComponent
1818
],
1919
imports: [
2020
CommonModule,

src/combobox/combobox.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export { ComboBox } from "./combobox.component";
1212

1313
@NgModule({
1414
declarations: [
15-
ComboBox,
15+
ComboBox
1616
],
1717
exports: [
1818
ComboBox,

src/content-switcher/content-switcher.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ContentSwitcherOption } from "./content-switcher-option.directive";
2222
role="tablist">
2323
<ng-content></ng-content>
2424
</div>
25-
`,
25+
`
2626
})
2727
export class ContentSwitcher implements AfterViewInit {
2828
@Input() label = "content switcher";

src/content-switcher/content-switcher.stories.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { storiesOf, moduleMetadata } from "@storybook/angular";
2-
import { withNotes } from "@storybook/addon-notes";
32
import { action } from "@storybook/addon-actions";
4-
import { withKnobs, boolean, object } from "@storybook/addon-knobs/angular";
3+
import { withKnobs } from "@storybook/addon-knobs/angular";
54

65
import { ContentSwitcherModule } from "../";
76

@@ -10,7 +9,7 @@ storiesOf("Content Switcher", module)
109
.addDecorator(
1110
moduleMetadata({
1211
imports: [
13-
ContentSwitcherModule,
12+
ContentSwitcherModule
1413
]
1514
})
1615
)

src/dialog/dialog.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
OnInit,
99
AfterViewInit,
1010
OnDestroy,
11-
HostListener,
11+
HostListener
1212
} from "@angular/core";
1313
import {
1414
Observable,
@@ -17,7 +17,7 @@ import {
1717
merge
1818
} from "rxjs";
1919
import { throttleTime } from "rxjs/operators";
20-
import position, { AbsolutePosition } from "../utils/position";
20+
import position from "../utils/position";
2121
import { cycleTabs } from "./../common/tab.service";
2222
import { DialogConfig } from "./dialog-config.interface";
2323

@@ -103,7 +103,7 @@ export class Dialog implements OnInit, AfterViewInit, OnDestroy {
103103
"top": pos => position.addOffset(pos, -this.dialogConfig.gap),
104104
"bottom": pos => position.addOffset(pos, this.dialogConfig.gap),
105105
"left-bottom": pos => position.addOffset(pos, 0, -this.dialogConfig.gap),
106-
"right-bottom": pos => position.addOffset(pos, 0, this.dialogConfig.gap),
106+
"right-bottom": pos => position.addOffset(pos, 0, this.dialogConfig.gap)
107107
};
108108

109109
/**

src/dialog/dialog.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ComponentFactory,
66
ComponentFactoryResolver,
77
Injectable,
8-
ViewContainerRef,
8+
ViewContainerRef
99
} from "@angular/core";
1010
import { Subscription } from "rxjs";
1111
import { DialogConfig } from "./dialog-config.interface";

src/dropdown/dropdown.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ storiesOf("Dropdown", module)
1414
imports: [
1515
DropdownModule,
1616
BootstrapModule
17-
],
17+
]
1818
})
1919
)
2020
.addDecorator(withKnobs)

src/dropdown/scrollable-list.directive.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import {
22
Input,
3-
Output,
43
Directive,
5-
EventEmitter,
64
ElementRef,
75
HostListener,
86
OnChanges,
@@ -12,7 +10,7 @@ import {
1210

1311
@Directive({
1412
selector: "[ibmScrollableList]",
15-
exportAs: "scrollable-list",
13+
exportAs: "scrollable-list"
1614
})
1715
export class ScrollableList implements OnChanges, AfterViewInit {
1816
/**

src/icon/static-icon.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
Component,
33
ElementRef,
44
AfterViewInit,
5-
Input,
5+
Input
66
} from "@angular/core";
77

88
/**

0 commit comments

Comments
 (0)