@teo-garcia/tsconfig-shared 0.1.2 → 0.1.9
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 +53 -14
- package/package.json +6 -2
- package/tsconfig.nest.json +0 -1
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
|
-
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://www.npmjs.com/package/@teo-garcia/tsconfig-shared)
|
|
9
|
+
[](https://typescriptlang.org)
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
29
|
+
- TypeScript 5+
|
|
12
30
|
|
|
13
|
-
|
|
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
|
-
###
|
|
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
|
-
##
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Shared TypeScript configurations for templates",
|
|
5
5
|
"main": "tsconfig.base.json",
|
|
6
6
|
"exports": {
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "https://github.com/teo-garcia/
|
|
33
|
+
"url": "git+https://github.com/teo-garcia/tsconfig-shared.git"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"format": "prettier --write .",
|
|
37
|
+
"format:check": "prettier --check ."
|
|
34
38
|
}
|
|
35
39
|
}
|