Skip to content

Instantly share code, notes, and snippets.

@weilueluo
Created March 12, 2023 15:05
Show Gist options
  • Save weilueluo/1a2707189cedbb8f335473ef43834a18 to your computer and use it in GitHub Desktop.
Save weilueluo/1a2707189cedbb8f335473ef43834a18 to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
// type checking
"strict": true,
// modules
"module": "esnext",
"moduleResolution": "nodenext",
"paths": {
"@/*": ["./src/*"]
},
"resolveJsonModule": true,
"esModuleInterop": true,
"isolatedModules": true,
// js support
"allowJs": false,
"plugins": [
{
"name": "next"
}
],
// interpo constraints
"forceConsistentCasingInFileNames": true,
// jsx
"jsx": "preserve",
// lib, default type definitions for js-builtin
"lib": ["dom", "dom.iterable", "esnext"],
// lang & env
"target": "es6",
// compile
"skipLibCheck": true,
"noEmit": true,
"removeComments": true,
"incremental": true,
"explainFiles": true,
"listEmittedFiles": true,
"listFiles": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment