From 2d7176914e4c1918d6e7d34e8aa8a5211518cc7f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 28 Nov 2025 12:51:07 +0100 Subject: [PATCH] Enable JS type checking in tsconfig.json Set `checkJs` to true to allow type checking for JavaScript files. Updated include/exclude patterns to support JS and CJS files in the project. --- tsconfig.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index d58a28e..7b62e00 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ /* Strictness */ "strict": true, "noUncheckedIndexedAccess": true, - "checkJs": false, + "checkJs": true, /* Bundled projects */ "lib": [ "dom", @@ -44,12 +44,12 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", + "**/*.cjs", + "**/*.js", ".next/types/**/*.ts", ".next/dev/types/**/*.ts" ], "exclude": [ - "node_modules", - "**/*.js", - "**/*.cjs" + "node_modules" ] }