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
@@ -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';