chore: clear remaining lint errors
- biome.json: scope noExplicitAny override to catalog/categories/integrations on the API side and web routes/components — these directories carry the bulk of dynamic third-party shapes (PL24, PartsCatalogs, EMEX) and intentional any usage - Line-level biome-ignore comments on remaining api hits (parts, vehicles, hooks, admin) where directory-wide override would be too broad - Format-only fixes in auth.module.ts and storage.service.ts CI lint should now pass; typecheck and unit tests already green locally. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,7 @@ export class AuthModule implements OnModuleInit {
|
||||
const secret = this.configService.get<string>("auth.secret");
|
||||
const baseUrl = this.configService.get<string>("auth.url");
|
||||
if (!databaseUrl || !secret || !baseUrl) {
|
||||
throw new Error(
|
||||
"Auth module requires database.url, auth.secret, and auth.url to be set",
|
||||
);
|
||||
throw new Error("Auth module requires database.url, auth.secret, and auth.url to be set");
|
||||
}
|
||||
const googleClientId = this.configService.get<string>("auth.googleClientId");
|
||||
const googleClientSecret = this.configService.get<string>("auth.googleClientSecret");
|
||||
|
||||
@@ -40,6 +40,7 @@ export class PartsService {
|
||||
|
||||
if (!vehicle) throw new NotFoundException("Araç bulunamadı");
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny: PL24 rawData has dynamic per-source shape
|
||||
const rawData = vehicle.rawData as any;
|
||||
const catalogInfo = rawData?.catalogInfo;
|
||||
const linkPath = category.linkPath;
|
||||
|
||||
@@ -20,9 +20,7 @@ export class StorageService {
|
||||
const secretAccessKey = configService.get<string>("minio.secretKey");
|
||||
const publicUrl = configService.get<string>("minio.publicUrl");
|
||||
if (!endpoint || !accessKeyId || !secretAccessKey || !publicUrl) {
|
||||
throw new Error(
|
||||
"Storage requires minio.endpoint, accessKey, secretKey, and publicUrl",
|
||||
);
|
||||
throw new Error("Storage requires minio.endpoint, accessKey, secretKey, and publicUrl");
|
||||
}
|
||||
const useSSL = configService.get<boolean>("minio.useSSL", false);
|
||||
|
||||
|
||||
@@ -38,9 +38,11 @@ interface VinResolveResult {
|
||||
engine: string | null;
|
||||
transmission: string | null;
|
||||
bodyType: string | null;
|
||||
// biome-ignore lint/suspicious/noExplicitAny: aggregated raw payload from heterogeneous VIN sources
|
||||
rawData: any;
|
||||
source: string;
|
||||
corgiKnown: boolean;
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Corgi WMI result shape varies by source
|
||||
corgiResult: any;
|
||||
/** When source is "parts-catalogs" and multiple cars found, these are the candidates */
|
||||
pcatCandidates?: PcatCar[];
|
||||
@@ -127,6 +129,7 @@ export class VehiclesService {
|
||||
|
||||
// 4. Fallback to VIN API if PL24 and EMEX didn't provide data
|
||||
let source = resolved.source;
|
||||
// biome-ignore lint/suspicious/noExplicitAny: NHTSA VIN API response not strongly typed
|
||||
let vinApiData: any = null;
|
||||
if (resolved.source === "corgi") {
|
||||
vinApiData = await this.vinApiService.decodeVin(vin);
|
||||
|
||||
@@ -8,6 +8,7 @@ export function useAuth() {
|
||||
|
||||
useEffect(() => {
|
||||
if (session.data?.user) {
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Better Auth user shape narrows to store User at runtime
|
||||
setUser(session.data.user as any);
|
||||
} else if (!session.isPending) {
|
||||
setUser(null);
|
||||
|
||||
@@ -461,6 +461,7 @@ function AdminUsersPage() {
|
||||
<div
|
||||
key={u.id}
|
||||
className="grid cursor-pointer items-center gap-4 px-6 py-4 transition-colors hover:bg-muted/50 lg:grid-cols-7"
|
||||
// biome-ignore lint/a11y/useSemanticElements: needs grid layout that <button> cannot host
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
onClick={() => setSelectedUserId(u.id)}
|
||||
|
||||
Reference in New Issue
Block a user