@codecompose/typescript-config
Version:
Opinionated reusable TypeScript configurations
24 lines (23 loc) • 643 B
JSON
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Next.js app",
"extends": "./base.json",
"compilerOptions": {
"jsx": "preserve", // next does its own jsx transformation
"lib": ["dom", "dom.iterable", "esnext"],
"noEmit": true,
"rootDir": "${configDir}", // nextjs targets files outside of src in root as well
"plugins": [
{
"name": "next" // plugin comes installed with nextjs
}
]
},
"include": [
"${configDir}",
"${configDir}/**/*.json",
"${configDir}/next-env.d.ts",
"${configDir}/.next/types/**/*.ts"
],
"exclude": ["${configDir}/node_modules"]
}