@bfra.me/tsconfig
v0.13.2
Published
Shared TypeScript configuration for bfra.me
Readme
@bfra.me/tsconfig
Shared TypeScript configuration for bfra.me.
Install
The main tsconfig.json config file extends from @tsconfig/strictest which is installed as a peer dependency.
NPM
npm install --save-dev @bfra.me/tsconfig typescriptPNPM
pnpm add --save-dev @bfra.me/tsconfig typescriptYarn
yarn add --dev @bfra.me/tsconfig typescriptUsage
Create a tsconfig.json file in your project and extend this shared configuration:
{
"extends": "@bfra.me/tsconfig"
}Ambient types
This configuration intentionally leaves compilerOptions.types unset. TypeScript 7 changes the default for this option, so projects that depend on ambient type packages should set the list explicitly in their extending configuration, for example:
{
"extends": "@bfra.me/tsconfig",
"compilerOptions": {
"types": ["node"]
}
}