feat: upgrade to eslint 10

This commit is contained in:
Shivam Mishra
2026-03-11 13:20:31 +05:30
parent 43977a1927
commit 17a6fa6c1d
30 changed files with 520 additions and 1756 deletions
@@ -48,7 +48,6 @@ export default {
}`;
},
avatarUrl() {
// eslint-disable-next-line
const displayImage = this.useInboxAvatarForBot
? this.inboxAvatarUrl
: '/assets/images/chatwoot_bot.png';
@@ -96,7 +96,6 @@ class ActionCableConnector extends BaseActionCableConnector {
this.app.$store.dispatch('agent/updatePresence', data.users);
};
// eslint-disable-next-line class-methods-use-this
onContactMerge = data => {
const { pubsub_token: pubsubToken } = data;
ActionCableConnector.refreshConnector(pubsubToken);
+1 -2
View File
@@ -1,8 +1,7 @@
const getUuid = () =>
'xxxxxxxx4xxx'.replace(/[xy]/g, c => {
// eslint-disable-next-line
const r = (Math.random() * 16) | 0;
// eslint-disable-next-line
const v = c === 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});