Feature/switch no-empty-function rule in eslint configuration from warn to error (#3979)

* Switch no-empty-function rule in eslint configuration from warn to error

* Update changelog

---------

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3988/head
dw-0 1 month ago committed by GitHub
parent 3baab79b54
commit 76ff34b0c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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",

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Changed
- Switched the `no-empty-function` rule from `warn` to `error` in the `eslint` configuration
### Fixed ### Fixed
- Fixed an issue with the X-axis scale of the dividend timeline on the analysis page - Fixed an issue with the X-axis scale of the dividend timeline on the analysis page

@ -177,6 +177,12 @@ Deprecated: `GET http://localhost:3333/api/v1/auth/anonymous/<INSERT_SECURITY_TO
`200 OK` `200 OK`
```
{
"status": "OK"
}
```
### Import Activities ### Import Activities
#### Prerequisites #### Prerequisites

@ -3,7 +3,9 @@ import { TransformDataSourceInRequestInterceptor } from '@ghostfolio/api/interce
import { import {
Controller, Controller,
Get, Get,
HttpCode,
HttpException, HttpException,
HttpStatus,
Param, Param,
UseInterceptors UseInterceptors
} from '@nestjs/common'; } from '@nestjs/common';
@ -17,7 +19,10 @@ export class HealthController {
public constructor(private readonly healthService: HealthService) {} public constructor(private readonly healthService: HealthService) {}
@Get() @Get()
public async getHealth() {} @HttpCode(HttpStatus.OK)
public getHealth() {
return { status: getReasonPhrase(StatusCodes.OK) };
}
@Get('data-enhancer/:name') @Get('data-enhancer/:name')
public async getHealthOfDataEnhancer(@Param('name') name: string) { public async getHealthOfDataEnhancer(@Param('name') name: string) {

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

@ -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?`

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

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