mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
start upgrading eslint
This commit is contained in:
@@ -6,13 +6,11 @@ import t from './translation';
|
||||
const CURRENT_SEASON = 'October';
|
||||
|
||||
function hasQuestAchievementFunction (key) {
|
||||
return (user) => {
|
||||
return user.achievements.quests &&
|
||||
user.achievements.quests[key] > 0;
|
||||
};
|
||||
return user => user.achievements.quests
|
||||
&& user.achievements.quests[key] > 0;
|
||||
}
|
||||
|
||||
let drops = {
|
||||
const drops = {
|
||||
Base: {
|
||||
value: 2,
|
||||
text: t('hatchingPotionBase'),
|
||||
@@ -55,7 +53,7 @@ let drops = {
|
||||
},
|
||||
};
|
||||
|
||||
let premium = {
|
||||
const premium = {
|
||||
RoyalPurple: {
|
||||
value: 2,
|
||||
text: t('hatchingPotionRoyalPurple'),
|
||||
@@ -279,7 +277,7 @@ each(wacky, (pot, key) => {
|
||||
});
|
||||
});
|
||||
|
||||
let all = assign({}, drops, premium, wacky);
|
||||
const all = assign({}, drops, premium, wacky);
|
||||
|
||||
export {
|
||||
drops,
|
||||
|
||||
Reference in New Issue
Block a user