add eslint and prettier
This commit is contained in:
parent
618146226b
commit
2ba687eb14
10 changed files with 775 additions and 37 deletions
|
@ -18,8 +18,8 @@ Hooks.once("init", async function () {
|
|||
CONFIG.DS4 = DS4;
|
||||
|
||||
// Define custom Entity classes
|
||||
CONFIG.Actor.entityClass = DS4Actor;
|
||||
CONFIG.Item.entityClass = DS4Item;
|
||||
CONFIG.Actor.entityClass = DS4Actor as typeof Actor; // TODO: Can we remove the casts?
|
||||
CONFIG.Item.entityClass = DS4Item as typeof Item; // TODO: Can we remove the casts?
|
||||
|
||||
// Register sheet application classes
|
||||
Actors.unregisterSheet("core", ActorSheet);
|
||||
|
@ -50,7 +50,7 @@ Hooks.once("setup", function () {
|
|||
const noSort = [];
|
||||
|
||||
// Localize and sort CONFIG objects
|
||||
for (let o of toLocalize) {
|
||||
for (const o of toLocalize) {
|
||||
const localized = Object.entries(CONFIG.DS4[o]).map((e) => {
|
||||
return [e[0], game.i18n.localize(e[1] as string)];
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue