mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Bring lint config back to original strictness
This commit is contained in:
@@ -4,4 +4,4 @@ import type { RepresentationMetadata } from '../representation/RepresentationMet
|
||||
/**
|
||||
* Generic interface for classes that add metadata to a RepresentationMetadata.
|
||||
*/
|
||||
export abstract class MetadataGenerator extends AsyncHandler<RepresentationMetadata> { }
|
||||
export abstract class MetadataGenerator extends AsyncHandler<RepresentationMetadata> {}
|
||||
|
||||
@@ -10,4 +10,4 @@ export type ValidatorInput = {
|
||||
/**
|
||||
* Generic interface for classes that validate Representations in some way.
|
||||
*/
|
||||
export abstract class Validator extends AsyncHandler<ValidatorInput, Representation> { }
|
||||
export abstract class Validator extends AsyncHandler<ValidatorInput, Representation> {}
|
||||
|
||||
@@ -62,6 +62,7 @@ export class ConvertingErrorHandler extends ErrorHandler {
|
||||
private async extractErrorDetails({ error, request }: ErrorHandlerArgs): Promise<PreparedArguments> {
|
||||
if (!this.showStackTrace) {
|
||||
delete error.stack;
|
||||
// eslint-disable-next-line ts/no-unsafe-member-access
|
||||
delete (error as any).cause;
|
||||
}
|
||||
const representation = new BasicRepresentation([ error ], error.metadata, INTERNAL_ERROR, false);
|
||||
|
||||
@@ -29,7 +29,7 @@ export class LinkRelMetadataWriter extends MetadataWriter {
|
||||
const values = input.metadata.getAll(predicate)
|
||||
.map((term): string => `<${term.value}>; rel="${relValue}"`);
|
||||
if (values.length > 0) {
|
||||
this.logger.debug(`Adding Link header ${values}`);
|
||||
this.logger.debug(`Adding Link header ${values.join(',')}`);
|
||||
addHeader(input.response, 'Link', values);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export class WacAllowMetadataWriter extends MetadataWriter {
|
||||
}
|
||||
}
|
||||
|
||||
private aclToPermission(aclTerm: Term): string {
|
||||
private aclToPermission(this: void, aclTerm: Term): string {
|
||||
return aclTerm.value.slice(ACL.namespace.length).toLowerCase();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user