UNPKG

@codecompose/typescript-config

Version:

Opinionated reusable TypeScript configurations

23 lines (22 loc) 640 B
{ "$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, // nextjs bundler will output everything "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" ] }