File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,12 @@ export default tseslint.config(
64
64
argsIgnorePattern : '^_' ,
65
65
} ,
66
66
] ,
67
+ '@typescript-eslint/no-unsafe-call' : 'off' ,
68
+ '@typescript-eslint/no-unsafe-member-access' : 'off' ,
67
69
'@typescript-eslint/no-unsafe-assignment' : 'off' ,
68
70
'@typescript-eslint/no-unsafe-argument' : 'off' ,
69
- '@typescript-eslint/no-unsafe-member-access' : 'off' ,
70
71
'@typescript-eslint/no-explicit-any' : 'off' ,
71
- '@typescript-eslint/no-unsafe-call ' : 'off' ,
72
+ '@typescript-eslint/no-unsafe-return ' : 'off' ,
72
73
} ,
73
74
} ,
74
75
{
Original file line number Diff line number Diff line change @@ -391,7 +391,6 @@ export function endpoint<
391
391
httpAdapter . reply ( res , JSON . stringify ( null ) ) ;
392
392
return ;
393
393
}
394
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
395
394
return body ;
396
395
} ;
397
396
// configure method parameters
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class AuthGuard implements CanActivate {
12
12
context : ExecutionContext ,
13
13
) : boolean | Promise < boolean > | Observable < boolean > {
14
14
const request = context . switchToHttp ( ) . getRequest ( ) ;
15
+
15
16
if ( ! request . headers . authorization ) {
16
17
throw new UnauthorizedException ( ) ;
17
18
}
You can’t perform that action at this time.
0 commit comments