Last active
December 4, 2024 21:00
-
-
Save mattdeboard/ffe255b0b027ec4f90e8746159f20a18 to your computer and use it in GitHub Desktop.
Basic config files for typescript+node projects (esp. where I want to use `import` instead of `require`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"useTabs": false, | |
"singleQuote": true, | |
"trailingComma": "all", | |
"printWidth": 79, | |
"arrowParens": "avoid" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ | |
"lib": [ | |
"es2019", | |
], | |
"module": "NodeNext", /* Specify what module code is generated. */ | |
"rootDir": "src", /* Specify the root folder within your source files. */ | |
"moduleResolution": "NodeNext", | |
"baseUrl": "./src", /* Specify the base directory to resolve non-relative module names. */ | |
"types": [ | |
"node" | |
], /* Specify type package names to be included without being referenced in a source file. */ | |
"outDir": "./dist", /* Specify an output folder for all emitted files. */ | |
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ | |
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ | |
/* Type Checking */ | |
"strict": true, /* Enable all strict type-checking options. */ | |
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ | |
"skipLibCheck": true /* Skip type checking all .d.ts files. */ | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment