start upgrading eslint

This commit is contained in:
Matteo Pagliazzi
2019-10-08 16:57:10 +02:00
parent 90c917f69e
commit 621787915c
304 changed files with 5992 additions and 6394 deletions

View File

@@ -11,9 +11,8 @@ import {
export function capByLevel (lvl) {
if (lvl > MAX_LEVEL) {
return MAX_LEVEL;
} else {
return lvl;
}
return lvl;
}
/*
@@ -25,7 +24,7 @@ export function capByLevel (lvl) {
export function toNextLevel (lvl) {
if (lvl < 5) {
return 25 * lvl;
} else if (lvl === 5) {
} if (lvl === 5) {
return 150;
}
return Math.round((Math.pow(lvl, 2) * 0.25 + 10 * lvl + 139.75) / 10) * 10;