mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-24 14:31:16 +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:
@@ -77,7 +77,7 @@ export class ToggleFavoriteLibraryComponent implements OnInit {
|
||||
map(selection => {
|
||||
// favorite libraries list should already be marked as favorite
|
||||
if (selection.library && isFavoriteLibraries) {
|
||||
(<any>selection.library).isFavorite = true;
|
||||
(selection.library as any).isFavorite = true;
|
||||
return selection;
|
||||
}
|
||||
return selection;
|
||||
|
@@ -38,7 +38,7 @@ describe('ToggleFavoriteComponent', () => {
|
||||
const mockRouter = {
|
||||
url: 'some-url'
|
||||
};
|
||||
const mockStore = <any>{
|
||||
const mockStore: any = {
|
||||
dispatch: jasmine.createSpy('dispatch'),
|
||||
select: jasmine.createSpy('select').and.returnValue(
|
||||
of({
|
||||
|
@@ -85,7 +85,7 @@ export class ToggleJoinLibraryButtonComponent {
|
||||
if (event.updatedEntry) {
|
||||
this.store.dispatch(
|
||||
new SetSelectedNodesAction([
|
||||
<any>{ entry: event.updatedEntry, isLibrary: true }
|
||||
{ entry: event.updatedEntry, isLibrary: true } as any
|
||||
])
|
||||
);
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ describe('ToggleFavoriteComponent', () => {
|
||||
const mockRouter = {
|
||||
url: 'some-url'
|
||||
};
|
||||
const mockStore = <any>{
|
||||
const mockStore: any = {
|
||||
dispatch: jasmine.createSpy('dispatch'),
|
||||
select: jasmine.createSpy('select').and.returnValue(
|
||||
of({
|
||||
|
@@ -66,8 +66,8 @@ export class ViewNodeComponent {
|
||||
.pipe(take(1))
|
||||
.subscribe(selection => {
|
||||
const id =
|
||||
(<SharedLinkEntry>selection.file).entry.nodeId ||
|
||||
(<any>selection.file).entry.guid ||
|
||||
(selection.file as SharedLinkEntry).entry.nodeId ||
|
||||
(selection.file as any).entry.guid ||
|
||||
selection.file.entry.id;
|
||||
|
||||
this.store.dispatch(
|
||||
|
Reference in New Issue
Block a user