update tslint -> eslint

This commit is contained in:
2021-05-21 20:17:26 +02:00
parent 80260df71f
commit a195fafa6b
252 changed files with 3080 additions and 2420 deletions

View File

@@ -1,7 +1,12 @@
<div [class.padding]="padding" class="card">
<button *ngIf="closeLink" [routerLink]="closeLink" class="btn-close" mat-icon-button>
<button
*ngIf="closeLink"
[routerLink]="closeLink"
class="btn-close"
mat-icon-button
>
<fa-icon [icon]="faClose"></fa-icon>
</button>
<div *ngIf="heading" class="heading">{{heading}}</div>
<div *ngIf="heading" class="heading">{{ heading }}</div>
<ng-content></ng-content>
</div>

View File

@@ -6,12 +6,13 @@ describe('CardComponent', () => {
let component: CardComponent;
let fixture: ComponentFixture<CardComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [CardComponent]
beforeEach(
waitForAsync(() => {
void TestBed.configureTestingModule({
declarations: [CardComponent],
}).compileComponents();
})
.compileComponents();
}));
);
beforeEach(() => {
fixture = TestBed.createComponent(CardComponent);
@@ -20,6 +21,6 @@ describe('CardComponent', () => {
});
it('should create', () => {
expect(component).toBeTruthy();
void expect(component).toBeTruthy();
});
});

View File

@@ -4,12 +4,12 @@ import {faTimes} from '@fortawesome/free-solid-svg-icons/faTimes';
@Component({
selector: 'app-card',
templateUrl: './card.component.html',
styleUrls: ['./card.component.less']
styleUrls: ['./card.component.less'],
})
export class CardComponent {
@Input() padding = true;
@Input() heading: string;
@Input() closeLink: string;
@Input() public padding = true;
@Input() public heading: string;
@Input() public closeLink: string;
public faClose = faTimes;
}

View File

@@ -5,16 +5,9 @@ import {MatButtonModule} from '@angular/material/button';
import {RouterModule} from '@angular/router';
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
@NgModule({
declarations: [CardComponent],
exports: [CardComponent],
imports: [
CommonModule,
MatButtonModule,
RouterModule,
FontAwesomeModule
]
imports: [CommonModule, MatButtonModule, RouterModule, FontAwesomeModule],
})
export class CardModule {
}
export class CardModule {}