chore: update sub-deps and fix lint

This commit is contained in:
Matteo Pagliazzi
2020-07-01 18:20:18 +02:00
parent b9d42bf0bc
commit 3d5630d5a2
72 changed files with 2519 additions and 3931 deletions
@@ -21,7 +21,6 @@ forOwn(backgrounds, (value, key) => {
});
});
const appearances = {
hair,
shirt: shirts,
-2
View File
@@ -91,7 +91,6 @@ api.armoire = {
},
};
/*
---------------------------------------------------------------
Classes
@@ -100,7 +99,6 @@ api.armoire = {
api.classes = CLASSES;
/*
---------------------------------------------------------------
Gear Types
@@ -1,4 +1,3 @@
// { path: '', type: '', canShow?: (user) => boolean }
export default [];
-1
View File
@@ -87,7 +87,6 @@ import updateTask from './ops/updateTask';
// TODO under api.libs.statHelpers?
import * as statHelpers from './statHelpers';
const api = {};
api.content = content;
api.errors = errors;
@@ -8,7 +8,6 @@ import isPinned from './isPinned';
import isFreeRebirth from './isFreeRebirth';
import getOfficialPinnedItems from './getOfficialPinnedItems';
function lockQuest (quest, user) {
if (quest.key === 'lostMasterclasser1') return !(user.achievements.quests.dilatoryDistress3 && user.achievements.quests.mayhemMistiflying3 && user.achievements.quests.stoikalmCalamity3 && user.achievements.quests.taskwoodsTerror3);
if (quest.lvl && user.stats.lvl < quest.lvl) return true;
@@ -4,7 +4,6 @@ function clearDebuffPotion (user) {
return user.pinnedItems.filter(item => item.type !== 'debuffPotion');
}
export default function setDebuffPotionItems (user) {
user.pinnedItems = clearDebuffPotion(user);
-1
View File
@@ -398,7 +398,6 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la
return categories;
};
/* Seasonal */
const flatGearArray = toArray(content.gear.flat);
@@ -19,7 +19,6 @@ export class BuyHourglassMountOperation extends AbstractHourglassItemOperation {
const { key } = this;
if (!key) throw new BadRequest(this.i18n('missingKeyParam'));
if (!includes(keys(content.timeTravelStable.mounts), key)) {
throw new NotAuthorized(this.i18n('notAllowedHourglass'));
}
-1
View File
@@ -52,7 +52,6 @@ export default function feed (user, req = {}, analytics) {
throw new NotFound(errorMessage('invalidFoodName', req.language));
}
if (!user.items.pets[pet.key]) {
throw new NotFound(i18n.t('messagePetNotFound', req.language));
}
@@ -9,7 +9,6 @@ import i18n from '../i18n';
import getItemByPathAndType from '../libs/getItemByPathAndType';
import getOfficialPinnedItems from '../libs/getOfficialPinnedItems';
const sortOrder = reduce(content.gearTypes, (accumulator, val, key) => {
accumulator[val] = key;
return accumulator;
@@ -145,7 +144,6 @@ export function togglePinnedItem (user, { item, type, path }, req = {}) {
getItemInfo(user, type, item, officialPinnedItems, req.language);
}
if (path === 'armoire' || path === 'potion' || type === 'debuffPotion') {
// @TODO: take into considertation debuffPotion type in message
throw new BadRequest(i18n.t('cannotUnpinItem', req.language));
-1
View File
@@ -23,7 +23,6 @@ function markNotificationAsRead (user, cardType) {
if (indexToRemove !== -1) user.notifications.splice(indexToRemove, 1);
}
export default function readCard (user, req = {}) {
const cardType = get(req.params, 'cardType');
-1
View File
@@ -114,7 +114,6 @@ function getSet (setType, firstPath, req) {
paths: mustachePaths,
} = getItemsAndPathsForSet(set, mustache, mustachePrefix);
const { beard } = content.appearances.hair;
const beardPrefix = 'hair.beard';