From 52210faba3392a46d6e4565c3618ce0d1961e0aa Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Fri, 3 Oct 2025 21:57:21 -1000 Subject: [PATCH 1/2] Fix ReScript deprecation warning: change es6 to esmodule --- bsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsconfig.json b/bsconfig.json index 1f842dce6..a7b92f107 100644 --- a/bsconfig.json +++ b/bsconfig.json @@ -8,7 +8,7 @@ ], "package-specs": [ { - "module": "es6", + "module": "esmodule", "in-source": true } ], From 4332a548fff42a5e535ddbc64cfc27a6d2df0fd0 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Fri, 3 Oct 2025 21:57:26 -1000 Subject: [PATCH 2/2] Fix ReScript warning: mark unused event parameter with underscore --- .../app/bundles/comments/rescript/CommentForm/CommentForm.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/bundles/comments/rescript/CommentForm/CommentForm.res b/client/app/bundles/comments/rescript/CommentForm/CommentForm.res index c3991d724..be073e7ea 100644 --- a/client/app/bundles/comments/rescript/CommentForm/CommentForm.res +++ b/client/app/bundles/comments/rescript/CommentForm/CommentForm.res @@ -104,7 +104,7 @@ let make = (~fetchData) => { className={`px-6 py-2 font-semibold border-0 rounded ${state.form == form.formType ? "text-sky-50 bg-sky-600" : "text-sky-600 hover:bg-gray-100"}`} - onClick={event => SetFormType(form.formType)->dispatch}> + onClick={_event => SetFormType(form.formType)->dispatch}> {form.formName->React.string} )