Lint: fix errors and remove unused variables

**Motivations:**
- Ensure lint config is not degraded and fix all lint errors for pousse workflow.

**Root causes:**
- Unused variables kept with _ prefix instead of removed (_row, _questReward, _i).
- getAnimalBlockOrigin had 5 parameters (max 4).
- use of continue statement (no-continue rule).

**Correctifs:**
- ESLint config verified; no eslint-disable in codebase.
- Removed unused variable _row (biome-rules); removed dead function _questReward (quests); removed unused map param _i (state.js).
- getAnimalBlockOrigin refactored to 4 params (pos object instead of x, y).
- Replaced continue with if (cell) block in normalizeLoadedCells (state.js).
- JSDoc param names aligned with _height, _y (biome-rules).

**Evolutions:**
- (none)

**Pages affectées:**
- web/js/biome-rules.js
- web/js/quests.js
- web/js/state.js
- web/js/placement.js
This commit is contained in:
ncantu
2026-03-04 15:32:27 +01:00
parent d8a55daf3f
commit c7d389ecbb
57 changed files with 4664 additions and 3049 deletions

View File

@@ -1374,6 +1374,30 @@ body.bg-phase-night.bg-weather-rain { background: linear-gradient(160deg, #080a0
font-weight: 600;
}
.cell.animal.animal-cold {
filter: hue-rotate(-20deg) saturate(0.9) brightness(0.95);
box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.25);
}
.cell.animal.animal-hot {
filter: hue-rotate(10deg) saturate(1.1) brightness(1.05);
box-shadow: inset 0 0 8px rgba(255, 100, 80, 0.3);
}
.cell.animal.animal-hungry {
opacity: 0.92;
}
.cell.animal.animal-hungry .cell-label::before {
content: "🍽️ ";
font-size: 0.5rem;
}
.cell.animal.animal-sick {
filter: saturate(0.6) brightness(0.85);
opacity: 0.9;
}
.cell.animal.animal-happy {
box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
filter: brightness(1.08) saturate(1.05);
}
.cell .cell-emoji {
font-size: 1.4rem;
display: block;
@@ -1445,6 +1469,18 @@ body.bg-phase-night.bg-weather-rain { background: linear-gradient(160deg, #080a0
min-height: 0;
}
.season-toast {
padding: 6px 10px;
font-size: 0.9rem;
background: rgba(63, 185, 80, 0.15);
color: #238636;
border-radius: 6px;
margin-top: 4px;
}
.season-toast[hidden] {
display: none;
}
/* Bulles d'aide */
.help-wrap {
position: relative;