Fix eslint and lint the codebase
This commit is contained in:
parent
23a402f11a
commit
761f0b6563
6 changed files with 22 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { __ID__, filePath } from "../consts.mjs";
|
||||
import { attributeSorter } from "../utils/attributeSort.mjs";
|
||||
import { ask } from "../utils/DialogManager.mjs";
|
||||
import { attributeSorter } from "../utils/attributeSort.mjs";
|
||||
import { localizer } from "../utils/localizer.mjs";
|
||||
import { toID } from "../utils/toID.mjs";
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
label: `Save As Defaults`,
|
||||
visible: () => game.user.isGM,
|
||||
action: `saveAsDefault`,
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
form: {
|
||||
|
|
@ -137,7 +137,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
const attrs = [];
|
||||
for (const [id, data] of Object.entries(this.#attributes)) {
|
||||
if (data == null) { continue };
|
||||
if (game.release.generation >= 14 && data == _del) continue;
|
||||
if (game.release.generation >= 14 && data == _del) {continue}
|
||||
attrs.push({
|
||||
id,
|
||||
name: data.name,
|
||||
|
|
@ -150,7 +150,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
};
|
||||
// #endregion Data Prep
|
||||
|
||||
// #region Actions
|
||||
// #region Actions
|
||||
/**
|
||||
* @param {Event} event
|
||||
*/
|
||||
|
|
@ -227,7 +227,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
},
|
||||
],
|
||||
},
|
||||
{ type: `divider` }
|
||||
{ type: `divider` },
|
||||
);
|
||||
continue;
|
||||
};
|
||||
|
|
@ -254,6 +254,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
switch (response.state) {
|
||||
case `errored`:
|
||||
ui.notifications.error(response.error);
|
||||
// eslint-disable-next-line no-fallthrough
|
||||
case `fronted`:
|
||||
return;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export class GenericItemSheet extends HandlebarsApplicationMixin(ItemSheetV2) {
|
|||
meta: {
|
||||
idp: this.id,
|
||||
editable: this.isEditable,
|
||||
limited: this.isLimited
|
||||
limited: this.isLimited,
|
||||
},
|
||||
item: this.item,
|
||||
system: this.item.system,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue