Skip to content

Instantly share code, notes, and snippets.

@sagerio
Created January 27, 2025 09:56
Show Gist options
  • Save sagerio/97e0a42dc43bee6add41cc9d799d6c1f to your computer and use it in GitHub Desktop.
Save sagerio/97e0a42dc43bee6add41cc9d799d6c1f to your computer and use it in GitHub Desktop.
Sample tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"target": "ES2020",
"module": "esnext",
"moduleResolution": "Node",
"lib": ["ES2020"],
"strict": true,
"skipLibCheck": true,
"incremental": true,
"sourceMap": true,
"inlineSources": true,
"baseUrl": "./",
"paths": {
"@app/*": ["src/app/*"],
"@assets/*": ["src/assets/*"],
"@environments/*": ["src/environments/*"]
},
"typeRoots": ["node_modules/@types"],
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noEmitOnError": true,
"resolveJsonModule": true,
"declarationMap": true,
"outDir": "./dist/out-tsc"
},
"include": [
"src/**/*.ts",
"src/**/*.html",
"src/**/*.css"
],
"exclude": [
"node_modules",
"dist",
"e2e"
],
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictTemplates": true,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictOutputEventTypes": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment