mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Add + apply rule disallowing the use of the integer
type alias
This commit is contained in:
parent
df51acef49
commit
6467442cbd
13
biome.jsonc
13
biome.jsonc
@ -91,6 +91,19 @@
|
|||||||
"noUselessSwitchCase": "off", // Explicit > Implicit
|
"noUselessSwitchCase": "off", // Explicit > Implicit
|
||||||
"noUselessConstructor": "warn", // TODO: Refactor and make this an error
|
"noUselessConstructor": "warn", // TODO: Refactor and make this an error
|
||||||
"noBannedTypes": "warn" // TODO: Refactor and make this an error
|
"noBannedTypes": "warn" // TODO: Refactor and make this an error
|
||||||
|
},
|
||||||
|
"nursery": {
|
||||||
|
"noRestrictedTypes": {
|
||||||
|
"level": "error",
|
||||||
|
"options": {
|
||||||
|
"types": {
|
||||||
|
"integer": {
|
||||||
|
"message": "This is an alias for 'number' that can provide false impressions of what values can actually be contained in this variable. Use 'number' instead.",
|
||||||
|
"use": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -24,7 +24,7 @@ export class RevivalBlessingPhase extends BattlePhase {
|
|||||||
UiMode.PARTY,
|
UiMode.PARTY,
|
||||||
PartyUiMode.REVIVAL_BLESSING,
|
PartyUiMode.REVIVAL_BLESSING,
|
||||||
this.user.getFieldIndex(),
|
this.user.getFieldIndex(),
|
||||||
(slotIndex: integer, _option: PartyOption) => {
|
(slotIndex: number, _option: PartyOption) => {
|
||||||
if (slotIndex >= 0 && slotIndex < 6) {
|
if (slotIndex >= 0 && slotIndex < 6) {
|
||||||
const pokemon = globalScene.getPlayerParty()[slotIndex];
|
const pokemon = globalScene.getPlayerParty()[slotIndex];
|
||||||
if (!pokemon || !pokemon.isFainted()) {
|
if (!pokemon || !pokemon.isFainted()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user