From ae79d68770758d9d4e6bcb6dc68a26f329bc9970 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 20 Aug 2022 18:15:27 +0000 Subject: [PATCH] Cleanup misc es-lint disablements not required, removed dev mode manually set flag for better NODE_ENV built in flag which avoids potentially forgetting to remove that in production builds. --- ayanova/src/App.vue | 1 - ayanova/src/api/authorizationroles.js | 3 +-- ayanova/src/api/gzapi.js | 2 +- ayanova/src/components/currency-control.vue | 1 - ayanova/src/components/report-control.vue | 2 -- ayanova/src/main.js | 15 ++------------- ayanova/src/views/ops-profile.vue | 2 +- ayanova/src/views/svc-schedule.vue | 1 - 8 files changed, 5 insertions(+), 22 deletions(-) diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 6f734228..5707b4cf 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -343,7 +343,6 @@ export default { if (!vm.$store.state.authenticated && !isReset) { //If a direct open path was being used but user is not logged in this will catch it //otherwise they will just go on to that path directly - // eslint-disable-next-line no-debugger if (toPath != undefined) { vm.$router.push({ diff --git a/ayanova/src/api/authorizationroles.js b/ayanova/src/api/authorizationroles.js index a846ee89..65de57cf 100644 --- a/ayanova/src/api/authorizationroles.js +++ b/ayanova/src/api/authorizationroles.js @@ -49,8 +49,7 @@ export default { return false; } //array form? - // eslint-disable-next-line no-debugger - debugger; + if (Array.isArray(desiredRole)) { //it's an array of roles, iterate and if any are present then return true for (let i = 0; i < desiredRole.length; i++) { diff --git a/ayanova/src/api/gzapi.js b/ayanova/src/api/gzapi.js index 2a995e9b..e809cb61 100644 --- a/ayanova/src/api/gzapi.js +++ b/ayanova/src/api/gzapi.js @@ -435,7 +435,7 @@ export default { // doDelayAsync: () => { // eslint-disable-next-line - return new Promise((resolve) => { + return new Promise(resolve => { setTimeout(() => resolve("I did something"), 10000); }); }, diff --git a/ayanova/src/components/currency-control.vue b/ayanova/src/components/currency-control.vue index cc4fcb72..9d9816fc 100644 --- a/ayanova/src/components/currency-control.vue +++ b/ayanova/src/components/currency-control.vue @@ -19,7 +19,6 @@