Skip to content

Commit ae8ddc1

Browse files
committed
fix linting errors
1 parent f927725 commit ae8ddc1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ export default tseslint.config(
6464
argsIgnorePattern: '^_',
6565
},
6666
],
67+
'@typescript-eslint/no-unsafe-call': 'off',
68+
'@typescript-eslint/no-unsafe-member-access': 'off',
6769
'@typescript-eslint/no-unsafe-assignment': 'off',
6870
'@typescript-eslint/no-unsafe-argument': 'off',
69-
'@typescript-eslint/no-unsafe-member-access': 'off',
7071
'@typescript-eslint/no-explicit-any': 'off',
71-
'@typescript-eslint/no-unsafe-call': 'off',
72+
'@typescript-eslint/no-unsafe-return': 'off',
7273
},
7374
},
7475
{

packages/nestjs-endpoints/src/fns.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ export function endpoint<
391391
httpAdapter.reply(res, JSON.stringify(null));
392392
return;
393393
}
394-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
395394
return body;
396395
};
397396
// configure method parameters

packages/test-app-express-cjs/src/auth.guard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class AuthGuard implements CanActivate {
1212
context: ExecutionContext,
1313
): boolean | Promise<boolean> | Observable<boolean> {
1414
const request = context.switchToHttp().getRequest();
15+
1516
if (!request.headers.authorization) {
1617
throw new UnauthorizedException();
1718
}

0 commit comments

Comments
 (0)