mirror of
https://github.com/zenlm/zen-family.git
synced 2026-10-30 14:58:06 +00:00
typescript 7.0.2 is the native compiler and exports no JavaScript API, so next 14.2.33 and eslint cannot read it. It comes in aliased as tsgo and does the typechecking; typescript stays on the 6 line for those. The site had no tsconfig, so this adds the one next writes for itself, with "types": ["node"] spelled out because TS7 no longer sweeps in every installed @types. 1 diagnostic before and after (fumadocs.config.ts sets a key GlobalConfig does not have). Co-authored-by: Hanzo Dev <[email protected]>
29 lines
615 B
JSON
29 lines
615 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2017",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"incremental": true,
|
|
"types": ["node"],
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"@/*": ["./*"]
|
|
}
|
|
},
|
|
"include": ["**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
"exclude": ["node_modules", "archive"]
|
|
}
|