follow standardjs linter things

This commit is contained in:
sinsong 2023-06-30 23:35:50 +08:00
parent 403d260b91
commit da08879c03
3 changed files with 12 additions and 3 deletions

View file

@ -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"
]
}
}

View file

@ -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'

View file

@ -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 }