fix: resolve all ESLint errors across API and web packages

Fix 19+ lint errors: unused imports (Phone, DuplicateCandidate, listingDetailsSchema),
import ordering violations, consistent-type-imports, and constant binary expression
in test file.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-08 16:29:44 +07:00
parent cd2abdba7b
commit 8705a2d9a8
15 changed files with 18 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
import { Injectable, Logger } from '@nestjs/common';
import { type OAuthService, type OAuthUserProfile } from '../services/oauth.service';
import { type TokenPair } from '../services/token.service';
/**
* Zalo OAuth2 integration.
@@ -70,7 +71,7 @@ export class ZaloOAuthStrategy {
* Handle the OAuth callback: exchange code for tokens, fetch profile,
* and authenticate via OAuthService.
*/
async handleCallback(code: string, codeVerifier?: string): Promise<{ tokens: import('../services/token.service').TokenPair }> {
async handleCallback(code: string, codeVerifier?: string): Promise<{ tokens: TokenPair }> {
// 1. Exchange authorization code for access token
const tokenData = await this.exchangeCode(code, codeVerifier);