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 */
"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"
]
}