Skip to content

Instantly share code, notes, and snippets.

@Ivanshamir
Created September 15, 2023 08:18
Show Gist options
  • Select an option

  • Save Ivanshamir/4ecccd3626b347ccd1169d5c1057c3f4 to your computer and use it in GitHub Desktop.

Select an option

Save Ivanshamir/4ecccd3626b347ccd1169d5c1057c3f4 to your computer and use it in GitHub Desktop.
Recommended TSConfig from Matt Pocock
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"target": "es2022",
"verbatimModuleSyntax": true,
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
/* If transpiling with TypeScript: */
"moduleResolution": "NodeNext",
"module": "NodeNext",
/* If NOT transpiling with TypeScript: */
"moduleResolution": "Bundler",
"module": "ESNext",
"noEmit": true,
/* If your code runs in the DOM: */
"lib": ["es2022", "dom"],
/* If your code doesn't run in the DOM: */
"lib": ["es2022"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment