{
event.stopPropagation();
- onCopyAsMarkdownClick({ setCopyingStatus, currentUrl });
+ void onCopyAsMarkdownClick({ setCopyingStatus, currentUrl });
}}
className={styles.llmButtonText}
>
@@ -425,7 +425,7 @@ export default function LLMButtons() {
}
};
- checkMarkdownAvailability();
+ void checkMarkdownAvailability();
return () => {
controller.abort();
@@ -465,7 +465,7 @@ export default function LLMButtons() {
if (option.value === 'copyForLLM') {
event?.preventDefault();
- onCopyAsMarkdownClick({ setCopyingStatus, currentUrl });
+ void onCopyAsMarkdownClick({ setCopyingStatus, currentUrl });
}
},
[setCopyingStatus, currentUrl],
diff --git a/website/src/theme/Footer/index.js b/website/src/theme/Footer/index.js
index acaa3acca9..a9931df9f0 100644
--- a/website/src/theme/Footer/index.js
+++ b/website/src/theme/Footer/index.js
@@ -9,6 +9,8 @@ import React from 'react';
import styles from './index.module.css';
+const CURRENT_YEAR = new Date().getFullYear();
+
function FooterLinksColumn({ column }) {
return (
@@ -69,7 +71,7 @@ function Footer() {
Crawlee is forever free and open source
- © {new Date().getFullYear()} Apify
+ © {CURRENT_YEAR} Apify
diff --git a/website/tsconfig.json b/website/tsconfig.json
new file mode 100644
index 0000000000..2c6756f385
--- /dev/null
+++ b/website/tsconfig.json
@@ -0,0 +1,15 @@
+{
+ "extends": "@apify/tsconfig",
+ "compilerOptions": {
+ "lib": ["ESNext", "DOM", "DOM.Iterable"],
+ "jsx": "react-jsx",
+ "module": "ESNext",
+ "moduleResolution": "Bundler",
+ "allowJs": true,
+ "noEmit": true,
+ "skipLibCheck": true,
+ "types": ["@docusaurus/module-type-aliases"]
+ },
+ "include": ["src", "tools", "roa-loader", "*.js", "*.mts"],
+ "exclude": ["**/node_modules", "build", ".docusaurus"]
+}