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:
Denys Vuika
2020-04-19 23:29:20 +01:00
committed by GitHub
parent 6a84717a00
commit bf509843b7
96 changed files with 829 additions and 559 deletions

View File

@@ -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;

View File

@@ -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({

View File

@@ -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
])
);
}

View File

@@ -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({

View File

@@ -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(