Revert "Linting"

This reverts commit 1b59dacd64.
pull/2803/head
zomars 2022-05-17 22:09:06 -06:00
parent fc59338057
commit ca3e309ad9
1 changed files with 4 additions and 7 deletions

View File

@ -1,5 +1,3 @@
/* eslint-disable prefer-rest-params */
/** /**
* As we want to keep control on the size of this snippet but we want some portion of it to be still readable. * As we want to keep control on the size of this snippet but we want some portion of it to be still readable.
* So, write the code that you need directly but keep it short. * So, write the code that you need directly but keep it short.
@ -31,19 +29,18 @@ export interface CalWindow extends Window {
export default function EmbedSnippet(url = EMBED_LIB_URL) { export default function EmbedSnippet(url = EMBED_LIB_URL) {
(function (C: CalWindow, A, L) { (function (C: CalWindow, A, L) {
const p = function (a: any, ar: any) { let p = function (a: any, ar: any) {
a.q.push(ar); a.q.push(ar);
}; };
const d = C.document; let d = C.document;
C.Cal = C.Cal =
C.Cal || C.Cal ||
function () { function () {
const cal = C.Cal!; let cal = C.Cal!;
const ar = arguments; let ar = arguments;
if (!cal.loaded) { if (!cal.loaded) {
cal.ns = {}; cal.ns = {};
cal.q = cal.q || []; cal.q = cal.q || [];
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore //@ts-ignore
d.head.appendChild(d.createElement("script")).src = A; d.head.appendChild(d.createElement("script")).src = A;
cal.loaded = true; cal.loaded = true;