Add eslint rule and fix as many issues as possible

This commit is contained in:
Khoa Le
2023-06-19 23:42:04 -04:00
parent e9eacc445d
commit 9d33e4756b
689 changed files with 9446 additions and 21821 deletions
@@ -9,7 +9,7 @@
/* eslint-disable func-names */
// @ts-nocheck
import { INTERCOM_ID as APP_ID } from '@app/components/utilities/config';
import { INTERCOM_ID as APP_ID } from "@app/components/utilities/config";
// Loads Intercom with the snippet
// This must be run before boot, it initializes window.Intercom
@@ -21,8 +21,8 @@ export const load = () => {
var ic=w.Intercom;
if(typeof ic==="function"){
ic('reattach_activator');
ic('update',w.intercomSettings);
ic("reattach_activator");
ic("update",w.intercomSettings);
} else {
var d=document;
var i=function() {
@@ -34,19 +34,19 @@ export const load = () => {
};
w.Intercom=i;
var l=function() {
var s=d.createElement('script');
s.type='text/javascript';
var s=d.createElement("script");
s.type="text/javascript";
s.async=true;
s.src='https://widget.intercom.io/widget/' + APP_ID;
var x=d.getElementsByTagName('script')[0];
s.src="https://widget.intercom.io/widget/" + APP_ID;
var x=d.getElementsByTagName("script")[0];
x.parentNode.insertBefore(s, x);
};
if (document.readyState==='complete') {
if (document.readyState==="complete") {
l();
} else if (w.attachEvent) {
w.attachEvent('onload',l);
w.attachEvent("onload",l);
} else {
w.addEventListener('load',l,false);
w.addEventListener("load",l,false);
}
}
})();