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.
This commit is contained in:
CanbiZ
2025-11-28 12:51:07 +01:00
parent 987ac3da1b
commit 2d7176914e

View File

@@ -12,7 +12,7 @@
/* Strictness */ /* Strictness */
"strict": true, "strict": true,
"noUncheckedIndexedAccess": true, "noUncheckedIndexedAccess": true,
"checkJs": false, "checkJs": true,
/* Bundled projects */ /* Bundled projects */
"lib": [ "lib": [
"dom", "dom",
@@ -44,12 +44,12 @@
"next-env.d.ts", "next-env.d.ts",
"**/*.ts", "**/*.ts",
"**/*.tsx", "**/*.tsx",
"**/*.cjs",
"**/*.js",
".next/types/**/*.ts", ".next/types/**/*.ts",
".next/dev/types/**/*.ts" ".next/dev/types/**/*.ts"
], ],
"exclude": [ "exclude": [
"node_modules", "node_modules"
"**/*.js",
"**/*.cjs"
] ]
} }