Enforces explicit type imports (#7158)

* Enforces explicit type imports

* Upgrades typescript-eslint

* Upgrades eslint related dependencies

* Update config

* Sync packages mismatches

* Syncs prettier version

* Linting

* Relocks node version

* Fixes

* Locks @vitejs/plugin-react to 1.3.2

* Linting
This commit is contained in:
Omar López authored and GitHub committed 2023-02-16 15:39:57 -07:00
1 parent 3df289b557
commit 7c749299bb
425 files changed
+1216 -1069

No files matched your search

@@ -1,4 +1,4 @@
import { CalWindow } from "../embed";
import type { CalWindow } from "../embed";
import getFloatingButtonHtml from "./FloatingButtonHtml";
export class FloatingButton extends HTMLElement {
@@ -1,4 +1,4 @@
import { CalWindow } from "../embed";
import type { CalWindow } from "../embed";
import loaderCss from "../loader.css";
import { getErrorString } from "../utils";
import inlineHtml from "./inlineHtml";
@@ -1,4 +1,4 @@
import { CalWindow } from "../embed";
import type { CalWindow } from "../embed";
import loaderCss from "../loader.css";
import { getErrorString } from "../utils";
import modalBoxHtml from "./ModalBoxHtml";
@@ -1,5 +1,6 @@
import { useRouter } from "next/router";
import { useState, useEffect, CSSProperties } from "react";
import type { CSSProperties } from "react";
import { useState, useEffect } from "react";
import { sdkActionManager } from "./sdk-event";
+2 -2
View File
@@ -1,7 +1,7 @@
import { FloatingButton } from "./FloatingButton/FloatingButton";
import { Inline } from "./Inline/inline";
import { ModalBox } from "./ModalBox/ModalBox";
import { methods, UiConfig } from "./embed-iframe";
import type { methods, UiConfig } from "./embed-iframe";
import css from "./embed.css";
import { SdkActionManager } from "./sdk-action-manager";
import allCss from "./tailwind.generated.css";
@@ -428,7 +428,7 @@ export class Cal {
method,
arg,
}: // TODO: Need some TypeScript magic here to remove hardcoded types
| { method: "ui"; arg: Parameters<typeof methods["ui"]>[0] }
| { method: "ui"; arg: Parameters<(typeof methods)["ui"]>[0] }
| { method: "parentKnowsIframeReady"; arg: undefined }) {
if (!this.iframeReady) {
this.iframeDoQueue.push({ method, arg });
+1 -1
View File
@@ -1,4 +1,4 @@
import { CalWindow } from "./embed";
import type { CalWindow } from "./embed";
const WEBAPP_URL =
import.meta.env.EMBED_PUBLIC_WEBAPP_URL || `https://${import.meta.env.EMBED_PUBLIC_VERCEL_URL}`;