This PR makes the "test" folder strict in typescript. `pnpm build:test` before: Found 3275 errors in 174 files. `pnpm build:test` after: Found 4912 errors in 268 files. At some point we should bring that number to 0 and make it a requirement in the CI. Currently `pnpm build:test` is not run anywhere in the CI. Additionally, I took the opportunity to combine the duplicate configurations from `tsconfig.json` and `tsconfig.typecheck.json` using "extend". declaration, declarationMap and sourceMap have been removed as they have no reason to exist in noEmit. The settings I left in `tsconfig.typecheck.json` are ones that I'm not sure why they are there. Perhaps the file could be removed or at least reduced further.
45 lines
1014 B
JSON
45 lines
1014 B
JSON
{
|
|
"compilerOptions": {
|
|
/* Strictness */
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitOverride": true,
|
|
|
|
"noEmit": true,
|
|
"rootDir": ".",
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"jsx": "preserve",
|
|
"lib": ["DOM", "DOM.Iterable", "ES2022"],
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"types": ["jest", "node", "@types/jest"],
|
|
"incremental": true,
|
|
"isolatedModules": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@payload-config": ["./_community/config.ts"]
|
|
}
|
|
},
|
|
"exclude": [
|
|
"dist",
|
|
"build",
|
|
"node_modules",
|
|
"eslint.config.js",
|
|
"dist/**/*.js",
|
|
"**/dist/**/*.js"
|
|
],
|
|
"include": ["./**/*.ts", "./**/*.tsx", "next-env.d.ts", ".next/types/**/*.ts", "setup.js"],
|
|
"references": []
|
|
}
|