CODEBASE: Fix lint errors 3 (#1758)

This is a really big refactor because it actually *fixes* a lot of the lint errors instead of disabling them.
This commit is contained in:
catloversg
2024-11-14 23:18:57 +07:00
committed by GitHub
parent 97ca8c5f5e
commit 75cf9c88b5
31 changed files with 187 additions and 51 deletions
+2 -2
View File
@@ -165,9 +165,9 @@ function fieldEquals(a: boolean[][], b: boolean[][]): boolean {
}
function generateEmptyField(difficulty: Difficulty): boolean[][] {
const field = [];
const field: boolean[][] = [];
for (let i = 0; i < Math.round(difficulty.height); i++) {
field.push(new Array(Math.round(difficulty.width)).fill(false));
field.push(new Array<boolean>(Math.round(difficulty.width)).fill(false));
}
return field;
}