Skip to content

Instantly share code, notes, and snippets.

@aguilarm
Created September 22, 2020 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aguilarm/401309435c119bbeba591aee2f63cd3e to your computer and use it in GitHub Desktop.
Save aguilarm/401309435c119bbeba591aee2f63cd3e to your computer and use it in GitHub Desktop.
TypeScript config for NextJS
{
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"components/*": ["./components/*"],
"pages/*": ["./pages/*"],
"lib/*": ["./lib/*"]
}
},
"exclude": [
"node_modules",
".eslintrc.js"
],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment