Skip to content

Instantly share code, notes, and snippets.

View James-N-M's full-sized avatar
☄️

James Moore James-N-M

☄️
View GitHub Profile
@mtimbs
mtimbs / tsconfig.json
Last active October 15, 2024 21:37
basic default tsconfig for use in TypeScript projects
{
"compilerOptions": {
// project options
"lib": [
"ESNext",
"dom"
], // specifies which default set of type definitions to use ("DOM", "ES6", etc)
"outDir": "lib", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory.,
"removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space
"target": "ES6", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3)