@carnesen/tsconfig
v5.0.0
Published
TypeScript configuration for @carnesen projects
Readme
@carnesen/tsconfig
TypeScript configurations for @carnesen projects
Install
npm install --save-dev typescript @carnesen/tsconfigUsage
Create a file tsconfig.json at the root of your project:
{
"extends": "@carnesen/tsconfig/node24",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src"]
}Add your own compilerOptions or any other properties described in the TypeScript docs.
What's Included
The configuration extends @tsconfig/node24 (ES2024, strict mode, nodenext modules) and adds:
- Output artifacts:
declaration,declarationMap,sourceMap - Extra strictness:
noUncheckedIndexedAccess,exactOptionalPropertyTypes,noImplicitReturns - Safety:
noEmitOnError,verbatimModuleSyntax
AGENTS.md Snippet
Add this to your project's AGENTS.md to give AI coding assistants context about the TypeScript configuration:
## TypeScript
Extends `@carnesen/tsconfig/node24` (ES2024, strict mode, nodenext modules). Notable settings: `noUncheckedIndexedAccess` and `exactOptionalPropertyTypes` require explicit undefined handling for array access and optional props.More information
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.
Related
- @carnesen/eslint-config: ESLint configurations for
@carnesenprojects
License
MIT © Chris Arnesen
