Skip to content

Instantly share code, notes, and snippets.

@neverovski
Last active November 27, 2023 19:50
Show Gist options
  • Save neverovski/e4887d7a2939e0e80e2349e361fd195c to your computer and use it in GitHub Desktop.
Save neverovski/e4887d7a2939e0e80e2349e361fd195c to your computer and use it in GitHub Desktop.
TSConfig for NodeJs
{
"compilerOptions": {
"lib": ["ES2023"],
"module": "commonjs",
"target": "ES2022",
"allowSyntheticDefaultImports": true,
"removeComments": true,
"noImplicitAny": false,
"outDir": "./dist",
"baseUrl": "./",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"forceConsistentCasingInFileNames": true,
"alwaysStrict": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"strictBindCallApply": true,
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitUseStrict": false,
"skipLibCheck": true,
"incremental": true,
"typeRoots": ["./@types", "./node_modules/@types"],
"types": ["node", "jest"]
},
"include": ["./src", "./tests"],
"extends": "./tsconfig.paths.json",
"exclude": ["node_modules", "dist", "templates", "http", "docs", "coverage"],
"ts-node": {
"files": true,
"require": ["tsconfig-paths/register"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment