Skip to content

Instantly share code, notes, and snippets.

@graffhyrum
Created September 15, 2023 16:36
Show Gist options
  • Select an option

  • Save graffhyrum/3c75b5e10372c5a74d3061d77b9e2af6 to your computer and use it in GitHub Desktop.

Select an option

Save graffhyrum/3c75b5e10372c5a74d3061d77b9e2af6 to your computer and use it in GitHub Desktop.
Matt Pocock tsconfig defaults
{
"compilerOptions": {
/* Basic 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"]
}
}
@graffhyrum

graffhyrum commented Sep 15, 2023

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment