Skip to content

Commit 5cfeaa7

Browse files
author
Lasim
committed
fix: disable eslint rule for explicit any in cloud providers and cloud credentials routes
1 parent 8d47c2b commit 5cfeaa7

File tree

3 files changed

+256
-37
lines changed

3 files changed

+256
-37
lines changed

services/backend/src/config/cloud-providers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const getEnabledCloudProviders = (): CloudProvider[] => {
8888
return Object.values(CLOUD_PROVIDERS).filter(provider => provider.enabled);
8989
};
9090

91+
/* eslint-disable @typescript-eslint/no-explicit-any */
9192
export const validateCredentialData = (providerId: string, data: Record<string, any>): { valid: boolean; errors: string[] } => {
9293
const provider = getCloudProvider(providerId);
9394
if (!provider) {
@@ -138,6 +139,7 @@ export const validateCredentialData = (providerId: string, data: Record<string,
138139
return { valid: errors.length === 0, errors };
139140
};
140141

142+
/* eslint-disable @typescript-eslint/no-explicit-any */
141143
export const validateCredentialDataForUpdate = (providerId: string, data: Record<string, any>): { valid: boolean; errors: string[] } => {
142144
const provider = getCloudProvider(providerId);
143145
if (!provider) {

services/backend/src/routes/cloud-credentials/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { FastifyInstance } from 'fastify';
23
import { getEnabledCloudProviders } from '../../config/cloud-providers';
34
import { CloudCredentialsService } from '../../services/cloudCredentialsService';

0 commit comments

Comments
 (0)