@open-xchange/tsconfig
v0.0.3
Published
Shared compiler options for tsconfig.json files
Maintainers
Keywords
Readme
@open-xchange/tsconfig
This package exports base configurations for the TypeScript compiler that tsconfig.json files in projects can extend from.
All configuration files contain:
- Strict options for type checking (except
exactOptionalPropertyTypes,noPropertyAccessFromIndexSignature, andnoUncheckedIndexedAccesswhich are too heavy to satisfy). - Modern target (
es2024) and module settings (esnextandbundler). - Option
skipLibCheckto skip linting external packages for better performance (and too many existing type issues in various packages).
Installation
npm install -D @open-xchange/tsconfig
# or
pnpm add -D @open-xchange/tsconfig
# or
yarn add -D @open-xchange/tsconfigUsage
The following configurations are available:
@open-xchange/tsconfig/tsconfig.lint.json: For type-checking during lint stage (noEmitset totrue).@open-xchange/tsconfig/tsconfig.build.json: For building the project (outDirset to"${configDir}/../dist").@open-xchange/tsconfig/tsconfig.transform.json: Same astsconfig.build.jsonbut includes the plugintypescript-transform-pathsto transform path aliases. Package must be installed in the project.
Example:
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@open-xchange/tsconfig/tsconfig.lint.json",
"compilerOptions": {
// custom overrides
}
}