@atomazing-org/tsconfig
v1.0.3
Published
Common Typescript config for super-app
Readme
@atomazing-org/tsconfig
Shared TypeScript configuration presets for consistent and strict development across the Atomazing Super App ecosystem.
Features
- ✅ Strict type checking enabled by default
- 🔁 Modern module and JSON resolution with ESM and bundler support
- 🧼 Clean project structure with
isolatedModulesand no emit setup - 🛡️ Enforces best practices via unused variable and switch-case checks
- 🔧 Optional global type resets via
ts-reset.d.ts
Installation
npm install --save-dev @atomazing-org/tsconfigUsage
In your project's root tsconfig.json, extend one of the exported configurations:
For general projects:
{
"extends": "@atomazing-org/tsconfig/tsconfig.base.json",
"include": ["src"]
}For Node.js projects:
{
"extends": "@atomazing-org/tsconfig/tsconfig.node.json",
"include": ["src"]
}Optional: Add strict runtime resets
// In a global.d.ts or your main entry file
import '@atomazing-org/tsconfig/ts-reset.d.ts';tsconfig.base.json Highlights
This preset is optimized for modern ESM-based environments with bundler support:
{
"target": "esnext",
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"resolveJsonModule": true,
"noEmit": true,
"isolatedModules": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": false,
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true
}Provided Files
| File | Purpose |
|-------------------------|----------------------------------------------|
| tsconfig.base.json | For ESM-based projects |
| tsconfig.node.json | Node.js focused settings |
| ts-reset.d.ts | Optional global type reset recommendations |
Local Scripts
npm run format # Auto-format files with Prettier
npm run lint # Run Prettier checks
npm run clean # Clean temp folders and artifactsLicense
MIT
