TypeScript Configuration for Next.js
Recommended TypeScript configuration for working with Next.js.
Usage
Install the package:
npm install -D typescript-next
Extend the configuration in your tsconfig.json
:
{
"extends": "typescript-next/tsconfig.json",
"compilerOptions": {
"plugins": [{ "name": "next" }]
}
}
License
MIT