mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Fix some suppression comments and update config
This commit is contained in:
parent
e017f135e1
commit
93ef225208
@ -48,7 +48,11 @@
|
|||||||
"noUnusedVariables": "error",
|
"noUnusedVariables": "error",
|
||||||
"noSwitchDeclarations": "error",
|
"noSwitchDeclarations": "error",
|
||||||
"noVoidTypeReturn": "error",
|
"noVoidTypeReturn": "error",
|
||||||
"noUnusedImports": "error"
|
"noUnusedImports": {
|
||||||
|
"level": "error",
|
||||||
|
"fix": "safe"
|
||||||
|
},
|
||||||
|
"noUnusedFunctionParameters": "error"
|
||||||
},
|
},
|
||||||
"style": {
|
"style": {
|
||||||
"useEnumInitializers": "off", // large enums like Moves/Species would make this cumbersome
|
"useEnumInitializers": "off", // large enums like Moves/Species would make this cumbersome
|
||||||
@ -104,7 +108,8 @@
|
|||||||
"noBannedTypes": "warn" // TODO: Refactor and make this an error
|
"noBannedTypes": "warn" // TODO: Refactor and make this an error
|
||||||
},
|
},
|
||||||
"performance": {
|
"performance": {
|
||||||
"noNamespaceImport": "error"
|
"noNamespaceImport": "error",
|
||||||
|
"noDelete": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -38,14 +38,11 @@ export class AttemptRunPhase extends PokemonPhase {
|
|||||||
alpha: 0,
|
alpha: 0,
|
||||||
duration: 250,
|
duration: 250,
|
||||||
ease: "Sine.easeIn",
|
ease: "Sine.easeIn",
|
||||||
onComplete: () =>
|
onComplete: () => enemyField.forEach(enemyPokemon => enemyPokemon.destroy()),
|
||||||
// biome-ignore lint/complexity/noForEach: TODO
|
|
||||||
enemyField.forEach(enemyPokemon => enemyPokemon.destroy()),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
globalScene.clearEnemyHeldItemModifiers();
|
globalScene.clearEnemyHeldItemModifiers();
|
||||||
|
|
||||||
// biome-ignore lint/complexity/noForEach: TODO
|
|
||||||
enemyField.forEach(enemyPokemon => {
|
enemyField.forEach(enemyPokemon => {
|
||||||
enemyPokemon.hideInfo().then(() => enemyPokemon.destroy());
|
enemyPokemon.hideInfo().then(() => enemyPokemon.destroy());
|
||||||
enemyPokemon.hp = 0;
|
enemyPokemon.hp = 0;
|
||||||
|
@ -939,7 +939,7 @@ export class GameData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSession(slotId: number): Promise<SessionSaveData | null> {
|
getSession(slotId: number): Promise<SessionSaveData | null> {
|
||||||
// biome-ignore lint/suspicious/noAsyncPromiseExecutor: <explanation>
|
// biome-ignore lint/suspicious/noAsyncPromiseExecutor: TODO: fix this
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
if (slotId < 0) {
|
if (slotId < 0) {
|
||||||
return resolve(null);
|
return resolve(null);
|
||||||
@ -980,7 +980,7 @@ export class GameData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadSession(slotId: number, sessionData?: SessionSaveData): Promise<boolean> {
|
loadSession(slotId: number, sessionData?: SessionSaveData): Promise<boolean> {
|
||||||
// biome-ignore lint/suspicious/noAsyncPromiseExecutor: <explanation>
|
// biome-ignore lint/suspicious/noAsyncPromiseExecutor: TODO: fix this
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
const initSessionFromData = async (sessionData: SessionSaveData) => {
|
const initSessionFromData = async (sessionData: SessionSaveData) => {
|
||||||
|
@ -2822,7 +2822,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
iconElement: GameObjects.Sprite,
|
iconElement: GameObjects.Sprite,
|
||||||
controlLabel: GameObjects.Text,
|
controlLabel: GameObjects.Text,
|
||||||
): void {
|
): void {
|
||||||
// biome-ignore lint/suspicious/noImplicitAnyLet: TODO
|
|
||||||
let iconPath: string;
|
let iconPath: string;
|
||||||
// touch controls cannot be rebound as is, and are just emulating a keyboard event.
|
// touch controls cannot be rebound as is, and are just emulating a keyboard event.
|
||||||
// Additionally, since keyboard controls can be rebound (and will be displayed when they are), we need to have special handling for the touch controls
|
// Additionally, since keyboard controls can be rebound (and will be displayed when they are), we need to have special handling for the touch controls
|
||||||
|
Loading…
Reference in New Issue
Block a user