From 16f0d449b76dcdb492ef3f5c8d23f3f56498e67d Mon Sep 17 00:00:00 2001 From: Mayank Kumar Chaudhari Date: Fri, 29 Dec 2023 15:09:22 +0530 Subject: [PATCH] fix next.js lint --- examples/nextjs/.eslintrc.js | 3 +++ examples/nextjs/app/NotSyncedCounter.tsx | 8 +++++++- examples/nextjs/app/OpenNewTab.tsx | 5 ++++- examples/nextjs/app/SyncedCounter.tsx | 8 +++++++- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/examples/nextjs/.eslintrc.js b/examples/nextjs/.eslintrc.js index 1d9773e..e7b7fc4 100644 --- a/examples/nextjs/.eslintrc.js +++ b/examples/nextjs/.eslintrc.js @@ -1,3 +1,6 @@ module.exports = { extends: ["custom/next"], + rules: { + "@typescript-eslint/explicit-function-return-type": "off", + }, }; diff --git a/examples/nextjs/app/NotSyncedCounter.tsx b/examples/nextjs/app/NotSyncedCounter.tsx index 0404edf..4948a42 100644 --- a/examples/nextjs/app/NotSyncedCounter.tsx +++ b/examples/nextjs/app/NotSyncedCounter.tsx @@ -7,7 +7,13 @@ export default function NotSyncedCounter() { return (

Not Synced Counter:

- +
); } diff --git a/examples/nextjs/app/OpenNewTab.tsx b/examples/nextjs/app/OpenNewTab.tsx index 139e4a2..0e2f14e 100644 --- a/examples/nextjs/app/OpenNewTab.tsx +++ b/examples/nextjs/app/OpenNewTab.tsx @@ -1,7 +1,10 @@ "use client"; export default function OpenNewTab() { return ( - ); diff --git a/examples/nextjs/app/SyncedCounter.tsx b/examples/nextjs/app/SyncedCounter.tsx index c29b727..b6d1ed7 100644 --- a/examples/nextjs/app/SyncedCounter.tsx +++ b/examples/nextjs/app/SyncedCounter.tsx @@ -7,7 +7,13 @@ export default function SyncedCounter() { return (

Synced Counter:

- +
); }