From 3579520575150937d4ff8a9778024b71968f93e0 Mon Sep 17 00:00:00 2001 From: Yoswaris Lawpaiboon <22832362+kiznick@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:09:04 +0700 Subject: [PATCH] Fix Eslint Co-authored-by: Nelson Chan <3271800+chakflying@users.noreply.github.com> --- src/components/BadgeGeneratorDialog.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/BadgeGeneratorDialog.vue b/src/components/BadgeGeneratorDialog.vue index 1ebcd525f..58a03e2b2 100644 --- a/src/components/BadgeGeneratorDialog.vue +++ b/src/components/BadgeGeneratorDialog.vue @@ -235,8 +235,7 @@ export default { } let badgeURL = this.$root.baseURL + "/api/badge/" + this.monitor.id + "/" + this.badge.type; - // eslint-disable-next-line camelcase - let parameter_list = {}; + let parameterList = {}; for (let parameter of this.parameters[this.badge.type] || []) { if (parameter === "duration" && this.badge.duration) { @@ -245,8 +244,7 @@ export default { } if (this.badge[parameter]) { - // eslint-disable-next-line camelcase - parameter_list[parameter] = this.badge[parameter]; + parameterList[parameter] = this.badge[parameter]; } } @@ -256,13 +254,12 @@ export default { } if (this.badge[parameter]) { - // eslint-disable-next-line camelcase - parameter_list[parameter] = this.badge[parameter]; + parameterList[parameter] = this.badge[parameter]; } } - if (Object.keys(parameter_list).length > 0) { - return badgeURL + "?" + new URLSearchParams(parameter_list); + if (Object.keys(parameterList).length > 0) { + return badgeURL + "?" + new URLSearchParams(parameterList); } return badgeURL;