diff --git a/frontend/package.json b/frontend/package.json index 289d712..c205abb 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,5 +21,14 @@ "moment": "^2.29.4", "vue": "^3.3.4", "vue-router": "^4.2.2" + }, + "standard": { + "globals": [ + "__WEBSITE_BASE__", + "__API_BASE__" + ], + "ignore": [ + "vite.config.js" + ] } } diff --git a/frontend/src/router.js b/frontend/src/router.js index c797942..01fc324 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from "vue-router" +import { createRouter, createWebHistory } from 'vue-router' import Index from './views/Index.vue' import Package from './views/Package.vue' diff --git a/frontend/src/utils/sizing.js b/frontend/src/utils/sizing.js index 0185434..933a9ce 100644 --- a/frontend/src/utils/sizing.js +++ b/frontend/src/utils/sizing.js @@ -1,7 +1,7 @@ const DATA_UNIT_FACTOR = 1024 -export function calculateSize(size) { - function wellSized(num) { +export function calculateSize (size) { + function wellSized (num) { return num > 1 && num < DATA_UNIT_FACTOR } if (size === undefined) { return }