chore: lint and fmt

This commit is contained in:
Julien Calixte
2026-03-28 09:38:55 +01:00
parent 8e8706e258
commit 5f48aa5690
108 changed files with 726 additions and 680 deletions

View File

@@ -1,22 +1,22 @@
import { execSync } from 'child_process'
import { execSync } from "child_process"
export const commitTheme = (mode: string, newTheme: string) => {
// Créer un commit avec les changements
try {
// Ajouter tous les fichiers modifiés
execSync('git add .', { stdio: 'inherit' })
execSync("git add .", { stdio: "inherit" })
// Créer le commit avec le message approprié
const commitMessage = `design: change ${mode} theme to ${newTheme}`
execSync(`git commit -m "${commitMessage}"`, { stdio: 'inherit' })
execSync(`git commit -m "${commitMessage}"`, { stdio: "inherit" })
console.log(`Commit créé avec succès: "${commitMessage}"`)
execSync(`git push`, { stdio: 'inherit' })
execSync(`git push`, { stdio: "inherit" })
console.log(`Push sur origin`)
} catch (error) {
console.error('Erreur lors de la création du commit:', error)
console.error("Erreur lors de la création du commit:", error)
process.exit(1)
}
}