fix: lint

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-04 14:40:35 +08:00
parent 967d2e27e1
commit ccdf213748
3 changed files with 3 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ export function validatorFactory(validator: (value: any) => boolean) {
} }
return function (validationOptions?: ValidationOptions) { return function (validationOptions?: ValidationOptions) {
return function (object: Object, propertyName: string) { return function (object: object, propertyName: string) {
registerDecorator({ registerDecorator({
target: object.constructor, target: object.constructor,
propertyName, propertyName,

View File

@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SocketMetadata {} export interface SocketMetadata {}
declare module 'socket.io' { declare module 'socket.io' {

View File

@@ -52,6 +52,7 @@ export default sxzz(
// for node server runtime // for node server runtime
'require-await': 0, 'require-await': 0,
'@typescript-eslint/no-unsafe-function-type': 0,
'unicorn/no-array-callback-reference': 0, 'unicorn/no-array-callback-reference': 0,
'node/prefer-global/process': 0, 'node/prefer-global/process': 0,