fix eslint warnigs for core project (#7506)

This commit is contained in:
Denys Vuika
2022-02-17 14:35:33 +00:00
committed by GitHub
parent 5b7f255eec
commit bca5a783ab
246 changed files with 5127 additions and 5065 deletions

View File

@@ -22,7 +22,7 @@ import { Component, Directive, Input, ViewEncapsulation } from '@angular/core';
templateUrl: './info-drawer-layout.component.html',
styleUrls: ['./info-drawer-layout.component.scss'],
encapsulation: ViewEncapsulation.None,
host: { 'class': 'adf-info-drawer-layout' }
host: { class: 'adf-info-drawer-layout' }
})
export class InfoDrawerLayoutComponent {
/** The visibility of the header. */

View File

@@ -52,8 +52,8 @@ describe('InfoDrawerComponent', () => {
it('should emit when tab is changed', () => {
const tabEmitSpy = spyOn(component.currentTab, 'emit');
const event = {index: 1, tab: {textLabel: 'DETAILS'}};
component.onTabChange(<MatTabChangeEvent> event);
const event = {index: 1, tab: {textLabel: 'DETAILS'}} as MatTabChangeEvent;
component.onTabChange(event);
expect(tabEmitSpy).toHaveBeenCalledWith(1);
});

View File

@@ -40,7 +40,7 @@ export class InfoDrawerTabComponent {
templateUrl: './info-drawer.component.html',
styleUrls: ['./info-drawer.component.scss'],
encapsulation: ViewEncapsulation.None,
host: { 'class': 'adf-info-drawer' }
host: { class: 'adf-info-drawer' }
})
export class InfoDrawerComponent {
/** The title of the info drawer (string or translation key). */