@teo-garcia/tsconfig-shared 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,16 +1,39 @@
1
+ <div align="center">
2
+
1
3
  # @teo-garcia/tsconfig-shared
2
4
 
3
- TypeScript configurations for modern development workflows.
5
+ **Shared TypeScript configurations for modern development workflows**
4
6
 
5
- ## Installation
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
8
+ [![npm](https://img.shields.io/npm/v/@teo-garcia/tsconfig-shared?color=blue)](https://www.npmjs.com/package/@teo-garcia/tsconfig-shared)
9
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5-3178C6?logo=typescript&logoColor=white)](https://typescriptlang.org)
6
10
 
7
- ```bash
8
- npm install --save-dev @teo-garcia/tsconfig-shared
9
- ```
11
+ Part of the [@teo-garcia/templates](https://github.com/teo-garcia/templates) ecosystem
12
+
13
+ </div>
14
+
15
+ ---
16
+
17
+ ## Features
18
+
19
+ | Config | Target | Use Case |
20
+ | ---------------- | ------ | -------------------------- |
21
+ | **base** | ESNext | Common TypeScript settings |
22
+ | **next** | ESNext | Next.js projects |
23
+ | **react-router** | ESNext | React Router + Vite |
24
+ | **nest** | ES2022 | NestJS server projects |
25
+ | **vite-react** | ESNext | Vite + React SPA |
26
+
27
+ ## Requirements
10
28
 
11
- ## Usage
29
+ - TypeScript 5+
12
30
 
13
- Extend the appropriate configuration for your framework:
31
+ ## Quick Start
32
+
33
+ ```bash
34
+ # Install the package
35
+ pnpm add -D @teo-garcia/tsconfig-shared
36
+ ```
14
37
 
15
38
  ### Next.js
16
39
 
@@ -35,7 +58,7 @@ Extend the appropriate configuration for your framework:
35
58
  }
36
59
  ```
37
60
 
38
- ### Nest.js
61
+ ### NestJS
39
62
 
40
63
  ```json
41
64
  {
@@ -58,14 +81,30 @@ Extend the appropriate configuration for your framework:
58
81
  }
59
82
  ```
60
83
 
61
- ## Available Configurations
84
+ ## Exports
85
+
86
+ | Export | Description |
87
+ | ------------------------------------------ | -------------------------- |
88
+ | `@teo-garcia/tsconfig-shared/base` | Common TypeScript settings |
89
+ | `@teo-garcia/tsconfig-shared/next` | Next.js optimized |
90
+ | `@teo-garcia/tsconfig-shared/react-router` | React Router + Vite |
91
+ | `@teo-garcia/tsconfig-shared/nest` | NestJS server |
92
+ | `@teo-garcia/tsconfig-shared/vite-react` | Vite + React SPA |
62
93
 
63
- - `base` - Common TypeScript settings
64
- - `next` - Next.js optimized configuration
65
- - `react-router` - React Router configuration
66
- - `nest` - Nest.js server configuration
67
- - `vite-react` - Vite + React configuration
94
+ ## Related Packages
95
+
96
+ | Package | Description |
97
+ | ------------------------------------------------------------------------------------------ | ------------------- |
98
+ | [@teo-garcia/eslint-config-shared](https://github.com/teo-garcia/eslint-config-shared) | ESLint rules |
99
+ | [@teo-garcia/prettier-config-shared](https://github.com/teo-garcia/prettier-config-shared) | Prettier formatting |
100
+ | [@teo-garcia/vitest-config-shared](https://github.com/teo-garcia/vitest-config-shared) | Test configuration |
68
101
 
69
102
  ## License
70
103
 
71
104
  MIT
105
+
106
+ ---
107
+
108
+ <div align="center">
109
+ <sub>Built by <a href="https://github.com/teo-garcia">teo-garcia</a></sub>
110
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teo-garcia/tsconfig-shared",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Shared TypeScript configurations for templates",
5
5
  "main": "tsconfig.base.json",
6
6
  "exports": {
@@ -8,14 +8,16 @@
8
8
  "./next": "./tsconfig.next.json",
9
9
  "./react-router": "./tsconfig.react-router.json",
10
10
  "./nest": "./tsconfig.nest.json",
11
- "./vite-react": "./tsconfig.vite-react.json"
11
+ "./vite-react": "./tsconfig.vite-react.json",
12
+ "./expo": "./tsconfig.expo.json"
12
13
  },
13
14
  "files": [
14
15
  "tsconfig.base.json",
15
16
  "tsconfig.next.json",
16
17
  "tsconfig.react-router.json",
17
18
  "tsconfig.nest.json",
18
- "tsconfig.vite-react.json"
19
+ "tsconfig.vite-react.json",
20
+ "tsconfig.expo.json"
19
21
  ],
20
22
  "keywords": [
21
23
  "typescript",
@@ -24,12 +26,23 @@
24
26
  "nextjs",
25
27
  "react",
26
28
  "nestjs",
27
- "vite"
29
+ "vite",
30
+ "expo",
31
+ "react-native"
28
32
  ],
29
33
  "author": "Teo Garcia",
30
34
  "license": "MIT",
35
+ "packageManager": "pnpm@10.2.0",
31
36
  "repository": {
32
37
  "type": "git",
33
- "url": "https://github.com/teo-garcia/templates"
38
+ "url": "git+https://github.com/teo-garcia/tsconfig-shared.git"
39
+ },
40
+ "scripts": {
41
+ "check": "pnpm format:check",
42
+ "format": "prettier --write .",
43
+ "format:check": "prettier --check ."
44
+ },
45
+ "devDependencies": {
46
+ "prettier": "^3.8.1"
34
47
  }
35
48
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "target": "ESNext",
5
+ "lib": ["ESNext"],
6
+ "module": "ESNext",
7
+ "moduleResolution": "bundler",
8
+ "noEmit": true,
9
+ "jsx": "react-native",
10
+ "allowJs": true,
11
+ "noUnusedLocals": true,
12
+ "noUnusedParameters": true,
13
+ "noFallthroughCasesInSwitch": true,
14
+ "noUncheckedIndexedAccess": true
15
+ }
16
+ }
@@ -9,7 +9,6 @@
9
9
  "experimentalDecorators": true,
10
10
  "target": "ES2023",
11
11
  "sourceMap": true,
12
- "outDir": "./dist",
13
12
  "baseUrl": "./",
14
13
  "strictNullChecks": false,
15
14
  "noImplicitAny": false,