Browse Source

fix: @typescript-eslint/no-empty-function

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3979/head
dw-0 10 months ago
parent
commit
0243bea419
  1. 1
      .eslintrc.json
  2. 3
      apps/api/src/app/health/health.controller.ts
  3. 6
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
  4. 3
      apps/client/src/app/components/admin-market-data/admin-market-data.service.ts
  5. 4
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts
  6. 2
      apps/client/src/app/services/user/user.service.ts

1
.eslintrc.json

@ -144,7 +144,6 @@
// and can be remove once solved // and can be remove once solved
"@typescript-eslint/consistent-type-definitions": "warn", "@typescript-eslint/consistent-type-definitions": "warn",
"@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true "@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true
"@typescript-eslint/consistent-type-assertions": "warn", "@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/prefer-optional-chain": "warn", "@typescript-eslint/prefer-optional-chain": "warn",

3
apps/api/src/app/health/health.controller.ts

@ -16,9 +16,6 @@ import { HealthService } from './health.service';
export class HealthController { export class HealthController {
public constructor(private readonly healthService: HealthService) {} public constructor(private readonly healthService: HealthService) {}
@Get()
public async getHealth() {}
@Get('data-enhancer/:name') @Get('data-enhancer/:name')
public async getHealthOfDataEnhancer(@Param('name') name: string) { public async getHealthOfDataEnhancer(@Param('name') name: string) {
const hasResponse = const hasResponse =

6
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -264,7 +264,7 @@ export class AdminMarketDataComponent
this.adminService this.adminService
.gatherProfileData() .gatherProfileData()
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {}); .subscribe();
} }
public onGatherProfileDataBySymbol({ public onGatherProfileDataBySymbol({
@ -274,14 +274,14 @@ export class AdminMarketDataComponent
this.adminService this.adminService
.gatherProfileDataBySymbol({ dataSource, symbol }) .gatherProfileDataBySymbol({ dataSource, symbol })
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {}); .subscribe();
} }
public onGatherSymbol({ dataSource, symbol }: AssetProfileIdentifier) { public onGatherSymbol({ dataSource, symbol }: AssetProfileIdentifier) {
this.adminService this.adminService
.gatherSymbol({ dataSource, symbol }) .gatherSymbol({ dataSource, symbol })
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {}); .subscribe();
} }
public onOpenAssetProfileDialog({ public onOpenAssetProfileDialog({

3
apps/client/src/app/components/admin-market-data/admin-market-data.service.ts

@ -59,10 +59,9 @@ export class AdminMarketDataService {
}), }),
finalize(() => { finalize(() => {
window.location.reload(); window.location.reload();
setTimeout(() => {}, 300);
}) })
) )
.subscribe(() => {}); .subscribe();
}, },
confirmType: ConfirmationDialogType.Warn, confirmType: ConfirmationDialogType.Warn,
title: $localize`Do you really want to delete these profiles?` title: $localize`Do you really want to delete these profiles?`

4
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -190,14 +190,14 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
this.adminService this.adminService
.gatherProfileDataBySymbol({ dataSource, symbol }) .gatherProfileDataBySymbol({ dataSource, symbol })
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {}); .subscribe();
} }
public onGatherSymbol({ dataSource, symbol }: AssetProfileIdentifier) { public onGatherSymbol({ dataSource, symbol }: AssetProfileIdentifier) {
this.adminService this.adminService
.gatherSymbol({ dataSource, symbol }) .gatherSymbol({ dataSource, symbol })
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {}); .subscribe();
} }
public onImportHistoricalData() { public onImportHistoricalData() {

2
apps/client/src/app/services/user/user.service.ts

@ -114,7 +114,7 @@ export class UserService extends ObservableStore<UserStoreState> {
dialogRef dialogRef
.afterClosed() .afterClosed()
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {}); .subscribe();
} }
return user; return user;

Loading…
Cancel
Save