Allow unused vars in args and fix more eslint issues

This commit is contained in:
Louis Lam
2022-04-17 01:39:49 +08:00
parent 2e3414135f
commit 8d8c38b1a8
17 changed files with 52 additions and 66 deletions

View File

@@ -42,6 +42,7 @@ export default {
default: "No",
},
},
emits: ["yes"],
data: () => ({
modal: null,
}),

View File

@@ -57,6 +57,7 @@ export default {
default: undefined,
},
},
emits: ["update:modelValue"],
data() {
return {
visibility: "password",

View File

@@ -48,6 +48,7 @@ export default {
default: undefined,
},
},
emits: ["update:modelValue"],
data() {
return {
visibility: "password",

View File

@@ -1,6 +1,6 @@
import { io } from "socket.io-client";
import { useToast } from "vue-toastification";
import jwt_decode from "jwt-decode";
import jwtDecode from "jwt-decode";
import Favico from "favico.js";
const toast = useToast();
@@ -266,7 +266,7 @@ export default {
const jwtToken = this.$root.storage().token;
if (jwtToken && jwtToken !== "autoLogin") {
return jwt_decode(jwtToken);
return jwtDecode(jwtToken);
}
return undefined;
},

View File

@@ -264,6 +264,7 @@ const toast = useToast();
const leavePageMsg = "Do you really want to leave? you have unsaved changes!";
// eslint-disable-next-line no-unused-vars
let feedInterval;
const favicon = new Favico({