@starfleet-technology/config-typescript
v0.0.1
Published
Shared TypeScript configuration for Starfleet Technology LCARS project - consistent TypeScript settings across all packages
Maintainers
Readme
TypeScript Configuration
Shared TypeScript configuration for Starfleet Technology LCARS project - consistent TypeScript settings across all packages
Installation
# npm
npm install --save-dev @starfleet-technology/config-typescript
# yarn
yarn add --dev @starfleet-technology/config-typescript
# pnpm
pnpm add -D @starfleet-technology/config-typescriptUsage
Base Configuration
Extend the base configuration in your tsconfig.json:
{
"extends": "@starfleet-technology/config-typescript/base.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": ["src/**/*"]
}Framework-Specific Configurations
Stencil Projects
{
"extends": "@starfleet-technology/config-typescript/stencil.json",
"compilerOptions": {
"outDir": "./dist"
}
}React Projects
{
"extends": "@starfleet-technology/config-typescript/react.json",
"compilerOptions": {
"outDir": "./dist"
}
}Vue Projects
{
"extends": "@starfleet-technology/config-typescript/vue.json",
"compilerOptions": {
"outDir": "./dist"
}
}Node.js Projects
{
"extends": "@starfleet-technology/config-typescript/node.json",
"compilerOptions": {
"outDir": "./dist"
}
}Available Configurations
base.json- Base TypeScript configuration with strict settingsstencil.json- Stencil-specific configuration for web componentsreact.json- React-specific configuration with JSX supportvue.json- Vue-specific configuration with SFC supportnode.json- Node.js-specific configuration for server-side code
Features
- Strict Type Checking - Maximum type safety
- Modern JavaScript - ES2022+ target support
- Module Resolution - Node16 resolution for compatibility
- Path Mapping - Consistent import path strategies
- Framework Support - Optimized for React, Vue, and Stencil
- Build Optimization - Efficient compilation settings
License
MIT License - see the LICENSE file for details.
Part of the Starfleet Technology LCARS Design System 🖖
