From 1b6b4ada9c5d899fe66524ab49e842bf407ecc7c Mon Sep 17 00:00:00 2001 From: Paul Maskelyne Date: Fri, 24 Nov 2023 16:06:28 +0000 Subject: [PATCH] linting fixes --- system/src/combat/combat.mjs | 4 ++-- system/src/documents/item.mjs | 6 +++--- system/src/helpers/effects.mjs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/system/src/combat/combat.mjs b/system/src/combat/combat.mjs index dcddc2b..b04881c 100644 --- a/system/src/combat/combat.mjs +++ b/system/src/combat/combat.mjs @@ -139,8 +139,8 @@ export default class Combat2d20 extends Combat { async startCombat() { const updateData = { - round: 1, - turn: 0, + "round": 1, + "turn": 0, "flags.combatantsTurnDone": [], }; diff --git a/system/src/documents/item.mjs b/system/src/documents/item.mjs index baf222f..da1cf92 100644 --- a/system/src/documents/item.mjs +++ b/system/src/documents/item.mjs @@ -36,19 +36,19 @@ export class ACItem extends Item { let focuses = this.system.focuses; const focus = { title: "", isfocus: false, description: "" }; focuses = [...focuses, focus]; - let updatedItem = { _id: this.id, "system.focuses": focuses }; + let updatedItem = { "_id": this.id, "system.focuses": focuses }; await this.update(updatedItem); } async deleteFocus(_index) { let focuses = this.system.focuses; focuses.splice(_index, 1); - let updatedItem = { _id: this.id, "system.focuses": focuses }; + let updatedItem = { "_id": this.id, "system.focuses": focuses }; await this.update(updatedItem); } async updateFocuses(_focuses) { - let updatedItem = { _id: this.id, "system.focuses": _focuses }; + let updatedItem = { "_id": this.id, "system.focuses": _focuses }; await this.update(updatedItem); } diff --git a/system/src/helpers/effects.mjs b/system/src/helpers/effects.mjs index f647403..806d1b7 100644 --- a/system/src/helpers/effects.mjs +++ b/system/src/helpers/effects.mjs @@ -11,11 +11,11 @@ export function onManageActiveEffect(event, owner) { switch ( a.dataset.action ) { case "create": return owner.createEmbeddedDocuments("ActiveEffect", [{ - label: "New Effect", - icon: "icons/svg/aura.svg", - origin: owner.uuid, + "label": "New Effect", + "icon": "icons/svg/aura.svg", + "origin": owner.uuid, "duration.rounds": li.dataset.effectType === "temporary" ? 1 : undefined, - disabled: li.dataset.effectType === "inactive", + "disabled": li.dataset.effectType === "inactive", }]); case "edit": return effect.sheet.render(true);