mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
integrate Prettier with tslint (#1419)
* integrate prettier with tslint * remove obsolte scripts * update tsconfig * fix lint issues * fix lint errors * more rules and fixes * kebab case and lint fixes * update helpers * update util
This commit is contained in:
@@ -52,7 +52,7 @@ export class ButtonMenuComponent implements OnInit {
|
||||
this.cd.detectChanges();
|
||||
}
|
||||
|
||||
trackById(index: number, obj: { id: string }) {
|
||||
trackById(_index: number, obj: { id: string }) {
|
||||
return obj.id;
|
||||
}
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ export class ExpandMenuComponent implements OnInit {
|
||||
this.cd.detectChanges();
|
||||
}
|
||||
|
||||
trackById(index: number, obj: { id: string }) {
|
||||
trackById(_index: number, obj: { id: string }) {
|
||||
return obj.id;
|
||||
}
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ import { ActionDirective } from './action.directive';
|
||||
|
||||
describe('ActionDirective', () => {
|
||||
let directive: ActionDirective;
|
||||
const routeMock = <any>{
|
||||
const routeMock: any = {
|
||||
navigate: jasmine.createSpy('navigate'),
|
||||
parseUrl: () => ({
|
||||
root: {
|
||||
@@ -35,7 +35,7 @@ describe('ActionDirective', () => {
|
||||
}
|
||||
})
|
||||
};
|
||||
const storeMock = <any>{
|
||||
const storeMock: any = {
|
||||
dispatch: jasmine.createSpy('dispatch')
|
||||
};
|
||||
|
||||
|
@@ -51,10 +51,10 @@ class RouterStub {
|
||||
}
|
||||
|
||||
describe('AcaExpansionPanel', () => {
|
||||
const mockStore = <any>{
|
||||
const mockStore: any = {
|
||||
dispatch: jasmine.createSpy('dispatch')
|
||||
};
|
||||
const mockMatExpansionPanel = <any>{
|
||||
const mockMatExpansionPanel: any = {
|
||||
expanded: false,
|
||||
children: []
|
||||
};
|
||||
|
@@ -51,10 +51,10 @@ class RouterStub {
|
||||
}
|
||||
|
||||
describe('MenuPanelDirective', () => {
|
||||
const mockStore = <any>{
|
||||
const mockStore: any = {
|
||||
dispatch: jasmine.createSpy('dispatch')
|
||||
};
|
||||
const mockMatExpansionPanel = <any>{
|
||||
const mockMatExpansionPanel: any = {
|
||||
expanded: false,
|
||||
children: []
|
||||
};
|
||||
|
@@ -33,7 +33,7 @@ describe('SidenavComponent', () => {
|
||||
let fixture: ComponentFixture<SidenavComponent>;
|
||||
let component: SidenavComponent;
|
||||
let extensionService: AppExtensionService;
|
||||
const navbarMock = <any>[
|
||||
const navbarMock: any = [
|
||||
{
|
||||
items: [
|
||||
{
|
||||
@@ -63,7 +63,7 @@ describe('SidenavComponent', () => {
|
||||
}));
|
||||
|
||||
it('should set the sidenav data', async(() => {
|
||||
expect(component.groups).toEqual(<any>[
|
||||
expect(component.groups).toEqual([
|
||||
{
|
||||
items: [
|
||||
{
|
||||
@@ -71,7 +71,7 @@ describe('SidenavComponent', () => {
|
||||
url: '/route'
|
||||
}
|
||||
]
|
||||
}
|
||||
} as any
|
||||
]);
|
||||
}));
|
||||
});
|
||||
|
Reference in New Issue
Block a user