Skip to content

Instantly share code, notes, and snippets.

@MatteoGauthier
Last active January 24, 2023 00:21
Show Gist options
  • Save MatteoGauthier/3a5572e8685e9d7d3388c6ab4557474e to your computer and use it in GitHub Desktop.
Save MatteoGauthier/3a5572e8685e9d7d3388c6ab4557474e to your computer and use it in GitHub Desktop.
Modern package.json & tsconfig.json file [ESNEXT]
{
"version": "1.0.0",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"type": "module",
}
{
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment