@jessestricker/tsconfig
v1.1.0
Published
A collection of tsconfig.json files.
Readme
tsconfig
A collection of tsconfig.json files:
node-22: Node.js v22 (LTS)
node-24: Node.js v24
node-ts: Run TypeScript directly in Node.js
Uses the compiler option
erasableSyntaxOnlyto constrain the syntax of.tsfiles. This makes them executable directly in Node.js without transpilation using its type stripping feature.pedantic: Use the strictest type-checking mode
Enables all compiler options which increase the strictness of the type-checking done by Typescript. Additionally, options improving the consistency of modules/import are also enabled.
Installation & Usage
Run one of the following, depending on your package manager:
npm install --save-dev @jessestricker/tsconfig
pnpm add --save-dev @jessestricker/tsconfigThen, use one (or more) of the provided base configurations for the extends options in your tsconfig.json file, for example:
{
"extends": [
"@jessestricker/tsconfig/pedantic.json",
"@jessestricker/tsconfig/node-24.json",
],
// ...
}[!IMPORTANT] The order in the
extendsproperty is important, as later entries override compiler options from earlier entries.In particular, make sure that
pedanticcomes before any of thenode-...configs.
