chore: initial commit fix linting issues (#2169)

* chore: lint fixes
This commit is contained in:
Carlos R. L. Rodrigues
2022-09-21 12:19:03 -03:00
committed by GitHub
parent c661cc789b
commit eb8034502b
122 changed files with 543 additions and 439 deletions

View File

@@ -1,2 +1,5 @@
export const transformDate = ({ value }): Date =>
!isNaN(Date.parse(value)) ? new Date(value) : new Date(Number(value) * 1000)
export const transformDate = ({ value }): Date => {
return !isNaN(Date.parse(value))
? new Date(value)
: new Date(Number(value) * 1000)
}

View File

@@ -71,7 +71,6 @@ async function typeValidator(
}
export function IsType(types: any[], validationOptions?: ValidationOptions) {
// eslint-disable-next-line @typescript-eslint/ban-types
return function (object: Object, propertyName: string): void {
registerDecorator({
name: "IsType",