fix(lint): fix lint after upgrades

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-02 15:09:08 +02:00
parent 7916261c5c
commit 60aceb442a
44 changed files with 322 additions and 218 deletions

View File

@@ -34,10 +34,13 @@ export const checkProviderConfig = (
export const convertConfig = (
configs: IKeyValueConfig[]
): Record<string, any> => {
return configs.reduce((acc, config) => {
acc[config.key] = toType(config.value, config.type);
return acc;
}, {} as Record<string, any>);
return configs.reduce(
(acc, config) => {
acc[config.key] = toType(config.value, config.type);
return acc;
},
{} as Record<string, any>
);
};
const toType = (value: string, type: string): string | number | boolean => {