diff --git a/apps/landing/src/lib/api.ts b/apps/landing/src/lib/api.ts
index cc43534a2..ac0e4bb45 100644
--- a/apps/landing/src/lib/api.ts
+++ b/apps/landing/src/lib/api.ts
@@ -1,6 +1,6 @@
-import fs from "fs";
+import fs from "node:fs";
import matter from "gray-matter";
-import { join } from "path";
+import { join } from "node:path";
const postsDirectory = join(process.cwd(), "src", "posts");
diff --git a/apps/web/next-i18next.config.js b/apps/web/next-i18next.config.js
index 8423aef44..46c9b0c51 100644
--- a/apps/web/next-i18next.config.js
+++ b/apps/web/next-i18next.config.js
@@ -1,5 +1,5 @@
const ICU = require("i18next-icu/i18nextICU.js");
-const path = require("path");
+const path = require("node:path");
const i18n = require("./i18n.config.js");
module.exports = {
diff --git a/apps/web/src/app/[locale]/(admin)/events/event-list.tsx b/apps/web/src/app/[locale]/(admin)/events/event-list.tsx
index f6f8a6fc5..0a7a35382 100644
--- a/apps/web/src/app/[locale]/(admin)/events/event-list.tsx
+++ b/apps/web/src/app/[locale]/(admin)/events/event-list.tsx
@@ -55,7 +55,7 @@ export function EventList({ data }: { data: ScheduledEvent[] }) {
style={{
background: generateGradient(row.original.id),
}}
- >
+ />
{row.original.title}
diff --git a/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx b/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx
index 35e876f93..166a3b104 100644
--- a/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx
+++ b/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx
@@ -81,7 +81,7 @@ const MonthCalendar: React.FunctionComponent = ({
const datepickerSelection = React.useMemo(() => {
return Object.keys(optionsByDay).map(
- (dateString) => new Date(dateString + "T12:00:00"),
+ (dateString) => new Date(`${dateString}T12:00:00`),
);
}, [optionsByDay]);
@@ -192,7 +192,7 @@ const MonthCalendar: React.FunctionComponent = ({
? "border-primary-300 group-hover:border-primary-400 border-dashed shadow-sm"
: "border-dashed border-transparent group-hover:border-gray-400 group-active:bg-gray-200",
)}
- >
+ />
{day.day}
@@ -272,7 +272,7 @@ const MonthCalendar: React.FunctionComponent = ({
className="space-y-3 p-3 sm:flex sm:items-start sm:space-x-4 sm:space-y-0 sm:p-4"
>
{optionsForDay.map(({ option, index }) => {
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row.tsx b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
index 161f85a56..53de6f559 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
@@ -95,7 +95,7 @@ export const ParticipantRowView: React.FunctionComponent<{
);
})}
-
|
+
|
);
};
@@ -109,7 +109,7 @@ const ParticipantRow: React.FunctionComponent
= ({
const { user, ownsObject } = useUser();
const { getVote, optionIds } = usePoll();
- const isYou = user && ownsObject(participant) ? true : false;
+ const isYou = !!(user && ownsObject(participant) );
const { canEditParticipant } = usePermissions();
const canEdit = canEditParticipant(participant.id);
diff --git a/apps/web/src/components/poll/desktop-poll/poll-header.tsx b/apps/web/src/components/poll/desktop-poll/poll-header.tsx
index 46adaabf2..f7240f936 100644
--- a/apps/web/src/components/poll/desktop-poll/poll-header.tsx
+++ b/apps/web/src/components/poll/desktop-poll/poll-header.tsx
@@ -50,9 +50,9 @@ const TimelineRow = ({
|
+ />
{children}
- |
+ |
);
};
diff --git a/apps/web/src/components/poll/manage-poll.tsx b/apps/web/src/components/poll/manage-poll.tsx
index 56fe19505..280390dd6 100644
--- a/apps/web/src/components/poll/manage-poll.tsx
+++ b/apps/web/src/components/poll/manage-poll.tsx
@@ -93,7 +93,7 @@ function PauseResumeToggle() {
);
- } else {
+ }
return (
{
@@ -119,7 +119,6 @@ function PauseResumeToggle() {
);
- }
}
const ManagePoll: React.FunctionComponent<{
@@ -189,8 +188,7 @@ const ManagePoll: React.FunctionComponent<{
- <>
- {poll.status === "finalized" ? (
+ {poll.status === "finalized" ? (
{
reopen.mutate({ pollId: poll.id });
@@ -227,7 +225,6 @@ const ManagePoll: React.FunctionComponent<{
>
)}
- >
diff --git a/apps/web/src/components/poll/truncated-linkify.tsx b/apps/web/src/components/poll/truncated-linkify.tsx
index 6efa8b3a7..c77ba3ecc 100644
--- a/apps/web/src/components/poll/truncated-linkify.tsx
+++ b/apps/web/src/components/poll/truncated-linkify.tsx
@@ -23,7 +23,7 @@ export const truncateLink = (href: string, text: string, key: number) => {
{finalText}
);
- } else {
+ }
finalText += "…";
return (
@@ -42,7 +42,6 @@ export const truncateLink = (href: string, text: string, key: number) => {
);
- }
};
const TruncatedLinkify = ({ children }: { children: React.ReactNode }) => {
diff --git a/apps/web/src/components/register-link.tsx b/apps/web/src/components/register-link.tsx
index 9aa1db4eb..e8daad45b 100644
--- a/apps/web/src/components/register-link.tsx
+++ b/apps/web/src/components/register-link.tsx
@@ -16,7 +16,7 @@ export const RegisterLink = React.forwardRef<
onClick={async (e) => {
e.preventDefault();
props.onClick?.(e);
- router.push("/register?callbackUrl=" + encodeURIComponent(pathname));
+ router.push(`/register?callbackUrl=${encodeURIComponent(pathname)}`);
}}
>
{children}
diff --git a/apps/web/src/components/vote-summary-progress-bar.tsx b/apps/web/src/components/vote-summary-progress-bar.tsx
index 1ed6a12d6..942185eb9 100644
--- a/apps/web/src/components/vote-summary-progress-bar.tsx
+++ b/apps/web/src/components/vote-summary-progress-bar.tsx
@@ -33,7 +33,7 @@ export const VoteSummaryProgressBar = (props: {
@@ -46,7 +46,7 @@ export const VoteSummaryProgressBar = (props: {
@@ -59,7 +59,7 @@ export const VoteSummaryProgressBar = (props: {
diff --git a/apps/web/src/contexts/posthog.tsx b/apps/web/src/contexts/posthog.tsx
index 7a9fbaf1e..f0f42c391 100644
--- a/apps/web/src/contexts/posthog.tsx
+++ b/apps/web/src/contexts/posthog.tsx
@@ -34,7 +34,7 @@ function usePostHogPageView() {
if (pathname && posthog) {
let url = window.origin + pathname;
if (searchParams?.toString()) {
- url = url + `?${searchParams.toString()}`;
+ url = `${url}?${searchParams.toString()}`;
}
if (previousUrl.current !== url) {
posthog.capture("$pageview", {
diff --git a/apps/web/src/pages/[locale]/auth/disable-notifications.tsx b/apps/web/src/pages/[locale]/auth/disable-notifications.tsx
index 571213817..24fcfaeec 100644
--- a/apps/web/src/pages/[locale]/auth/disable-notifications.tsx
+++ b/apps/web/src/pages/[locale]/auth/disable-notifications.tsx
@@ -20,7 +20,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => {
props: {},
redirect: {
destination:
- "/login?callbackUrl=" + encodeURIComponent(ctx.req.url ?? "/"),
+ `/login?callbackUrl=${encodeURIComponent(ctx.req.url ?? "/")}`,
},
};
}
diff --git a/apps/web/src/pages/_document.tsx b/apps/web/src/pages/_document.tsx
index 98e16e854..ff2ee355a 100644
--- a/apps/web/src/pages/_document.tsx
+++ b/apps/web/src/pages/_document.tsx
@@ -103,7 +103,7 @@ export default function Document() {
-
+