@basenative/tsconfig
Shared base tsconfigs for DuganLabs projects. Strict, modern, runtime-targeted.
Install
pnpm add -D @basenative/tsconfig
Use
Pick the variant matching your runtime in tsconfig.json:
{ "extends": "@basenative/tsconfig/base" }
{ "extends": "@basenative/tsconfig/browser" }
{ "extends": "@basenative/tsconfig/node" }
{ "extends": "@basenative/tsconfig/worker" }
{ "extends": "@basenative/tsconfig/react" }
Then add your own include / exclude and any project-specific overrides.
What's in base
target: ES2022,module: ESNext,moduleResolution: Bundlerstrict: trueplus the modern strictness extras:noUncheckedIndexedAccess,noImplicitOverride,noFallthroughCasesInSwitch,exactOptionalPropertyTypesverbatimModuleSyntax,isolatedModules,esModuleInteropallowJs: true(DuganLabs projects mix JS + TS)skipLibCheck: true,forceConsistentCasingInFileNames: true
Links
- BaseNative monorepo — https://github.com/DuganLabs/basenative
- Issues — https://github.com/DuganLabs/basenative/issues
- Docs — https://github.com/DuganLabs/basenative#readme
License
Apache-2.0