From 92f128f75ad44466f017a7920c56ebdc354b50ed Mon Sep 17 00:00:00 2001 From: OopsOverflow Date: Sun, 6 Oct 2024 02:33:41 +0200 Subject: [PATCH] build(apps): use next lint instead of biome --- apps/app/.eslintrc.json | 3 +++ apps/app/next.config.mjs | 1 + apps/app/package.json | 2 +- apps/web/.eslintrc.json | 3 +++ apps/web/next.config.mjs | 4 +++- apps/web/package.json | 2 +- 6 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 apps/app/.eslintrc.json create mode 100644 apps/web/.eslintrc.json diff --git a/apps/app/.eslintrc.json b/apps/app/.eslintrc.json new file mode 100644 index 00000000..bffb357a --- /dev/null +++ b/apps/app/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/apps/app/next.config.mjs b/apps/app/next.config.mjs index 15854529..3ef227bf 100644 --- a/apps/app/next.config.mjs +++ b/apps/app/next.config.mjs @@ -7,6 +7,7 @@ const nextConfig = { experimental: { instrumentationHook: process.env.NODE_ENV === "production", }, + reactStrictMode: true, }; export default withSentryConfig(nextConfig, { diff --git a/apps/app/package.json b/apps/app/package.json index b61853a9..84d496e4 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -6,7 +6,7 @@ "dev": "next dev -p 3000", "build": "next build", "clean": "git clean -xdf .next .turbo node_modules", - "lint": "biome lint", + "lint": "next lint", "format": "biome format --write .", "start": "next start", "typecheck": "tsc --noEmit" diff --git a/apps/web/.eslintrc.json b/apps/web/.eslintrc.json new file mode 100644 index 00000000..bffb357a --- /dev/null +++ b/apps/web/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 4678774e..bbde6fbc 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + reactStrictMode: true, +}; export default nextConfig; diff --git a/apps/web/package.json b/apps/web/package.json index 3c38cfbd..91788501 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -6,7 +6,7 @@ "dev": "next dev -p 3001", "build": "next build", "clean": "git clean -xdf .next .turbo node_modules", - "lint": "biome lint", + "lint": "next lint", "format": "biome format --write .", "start": "next start", "typecheck": "tsc --noEmit"