diff --git a/package.json b/package.json
index 7fa7aaa..7545615 100644
--- a/package.json
+++ b/package.json
@@ -60,11 +60,11 @@
"ava": "^6.4.1",
"eslint-config-xo-react": "^0.27.0",
"eslint-plugin-react": "^7.34.1",
- "eslint-plugin-react-hooks": "^4.6.2",
+ "eslint-plugin-react-hooks": "^5.2.0",
"execa": "^9.6.0",
"p-event": "^7.0.0",
"tsx": "^4.20.5",
- "xo": "^0.59.0"
+ "xo": "^0.59.3"
},
"xo": {
"extends": [
diff --git a/source/cli.tsx b/source/cli.tsx
index 3b572a8..679b268 100755
--- a/source/cli.tsx
+++ b/source/cli.tsx
@@ -49,5 +49,13 @@ const App: React.FC = () => (
/>
);
-const app = render();
-await app.waitUntilExit();
+async function main() {
+ const app = render();
+ await app.waitUntilExit();
+}
+
+// It cannot use top-level await as that errors with some React error.
+// eslint-disable-next-line unicorn/prefer-top-level-await
+main().catch((error: unknown) => {
+ console.error(error);
+});