TypeScript configuration for @carnesen projects
npm install @carnesen/tsconfig
TypeScript configurations for @carnesen projects
```
npm install --save-dev typescript @carnesen/tsconfig
Create a file tsconfig.json at the root of your project:
`json`
{
"extends": "@carnesen/tsconfig/node24",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src"]
}
Add your own compilerOptions or any other properties described in the TypeScript docs.
The configuration extends @tsconfig/node24 (ES2024, strict mode, nodenext modules) and adds:
- Output artifacts: declaration, declarationMap, sourceMapnoUncheckedIndexedAccess
- Extra strictness: , exactOptionalPropertyTypes, noImplicitReturnsnoEmitOnError
- Safety: , verbatimModuleSyntax
Add this to your project's AGENTS.md to give AI coding assistants context about the TypeScript configuration:
`markdownTypeScript
Extends @carnesen/tsconfig/node24 (ES2024, strict mode, nodenext modules). Notable settings: noUncheckedIndexedAccess and exactOptionalPropertyTypes require explicit undefined handling for array access and optional props.`
If you encounter any bugs or have any questions or feature requests, please don't hesitate to file an issue or submit a pull request on this project's repository on GitHub.
- @carnesen/eslint-config: ESLint configurations for @carnesen` projects
MIT © Chris Arnesen