chore: fix all Typescript warnings (#8618)

* [CAL-1517] fix all Typescript warnings

* solve conflicts

* Update stripeCheckoutSession.handler.ts

Parse is a guard, so even though the variable is unused the parse itself is needed.

* Update ToolbarPlugin.tsx

Don't change dependency tree

---------

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-06-06 11:59:57 +00:00
1 parent 87e1ad7115
commit 2dbc73c75b
106 files changed
+425 -319

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ export type TextEditorProps = {
const editorConfig = {
theme: ExampleTheme,
onError(error: any) {
onError(error: Error) {
throw error;
},
namespace: "",
@@ -7,7 +7,7 @@ const EMAIL_MATCHER =
/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
const MATCHERS = [
(text: any) => {
(text: string) => {
const match = URL_MATCHER.exec(text);
return (
match && {
@@ -18,7 +18,7 @@ const MATCHERS = [
}
);
},
(text: any) => {
(text: string) => {
const match = EMAIL_MATCHER.exec(text);
return (
match && {
@@ -358,6 +358,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
}
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.updateTemplate]);
useEffect(() => {
@@ -381,6 +382,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
});
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {
@@ -392,7 +394,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
}),
editor.registerCommand(
SELECTION_CHANGE_COMMAND,
(_payload, newEditor) => {
(_payload, _newEditor) => {
updateToolbar();
return false;
},