**Motivations :** - Créer un script shell pour linter tout le projet avec correction automatique - Faciliter l'exécution du linting avec --fix **Modifications :** - Créer lint-all.sh qui appelle npm run lint (qui inclut déjà --fix) - Rendre le script exécutable **Pages affectées :** - lint-all.sh (nouveau script)
14 lines
214 B
Bash
Executable File
14 lines
214 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script pour linter tout le projet et corriger automatiquement les erreurs
|
|
|
|
set -e
|
|
|
|
echo "🔍 Running ESLint with --fix option..."
|
|
npm run lint
|
|
|
|
echo ""
|
|
echo "✅ Linting completed with auto-fix!"
|
|
|
|
|