chore: clean up code formatting and remove unnecessary whitespace across multiple files for improved readability

This commit is contained in:
Julien Froidefond
2025-12-05 11:05:14 +01:00
parent b3157fffbd
commit 71d850c985
65 changed files with 347 additions and 505 deletions

View File

@@ -29,4 +29,3 @@ export const authConfig: NextAuthConfig = {
},
providers: [], // Configured in auth.ts
};

View File

@@ -59,4 +59,3 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
},
},
});

View File

@@ -14,11 +14,7 @@ export function getGravatarUrl(
size: number = 40,
fallback: GravatarDefault = 'identicon'
): string {
const hash = createHash('md5')
.update(email.toLowerCase().trim())
.digest('hex');
const hash = createHash('md5').update(email.toLowerCase().trim()).digest('hex');
return `https://www.gravatar.com/avatar/${hash}?d=${fallback}&s=${size}`;
}

View File

@@ -230,7 +230,7 @@ export const MOTIVATORS_CONFIG: MotivatorConfig[] = [
type: 'POWER',
name: 'Pouvoir',
icon: '⚡',
description: 'Avoir de l\'influence et du contrôle sur les décisions',
description: "Avoir de l'influence et du contrôle sur les décisions",
color: '#ef4444', // red
},
{
@@ -291,12 +291,10 @@ export const MOTIVATORS_CONFIG: MotivatorConfig[] = [
},
];
export const MOTIVATOR_BY_TYPE: Record<MotivatorType, MotivatorConfig> =
MOTIVATORS_CONFIG.reduce(
(acc, config) => {
acc[config.type] = config;
return acc;
},
{} as Record<MotivatorType, MotivatorConfig>
);
export const MOTIVATOR_BY_TYPE: Record<MotivatorType, MotivatorConfig> = MOTIVATORS_CONFIG.reduce(
(acc, config) => {
acc[config.type] = config;
return acc;
},
{} as Record<MotivatorType, MotivatorConfig>
);