@teo-garcia/tsconfig-shared 0.1.9 → 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 +18 -18
- package/package.json +13 -4
- package/tsconfig.expo.json +16 -0
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ Part of the [@teo-garcia/templates](https://github.com/teo-garcia/templates) eco
|
|
|
16
16
|
|
|
17
17
|
## Features
|
|
18
18
|
|
|
19
|
-
| Config
|
|
20
|
-
|
|
21
|
-
| **base**
|
|
22
|
-
| **next**
|
|
23
|
-
| **react-router** | ESNext | React Router + Vite
|
|
24
|
-
| **nest**
|
|
25
|
-
| **vite-react**
|
|
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
26
|
|
|
27
27
|
## Requirements
|
|
28
28
|
|
|
@@ -83,21 +83,21 @@ pnpm add -D @teo-garcia/tsconfig-shared
|
|
|
83
83
|
|
|
84
84
|
## Exports
|
|
85
85
|
|
|
86
|
-
| Export
|
|
87
|
-
|
|
88
|
-
| `@teo-garcia/tsconfig-shared/base`
|
|
89
|
-
| `@teo-garcia/tsconfig-shared/next`
|
|
90
|
-
| `@teo-garcia/tsconfig-shared/react-router` | React Router + Vite
|
|
91
|
-
| `@teo-garcia/tsconfig-shared/nest`
|
|
92
|
-
| `@teo-garcia/tsconfig-shared/vite-react`
|
|
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 |
|
|
93
93
|
|
|
94
94
|
## Related Packages
|
|
95
95
|
|
|
96
|
-
| Package
|
|
97
|
-
|
|
98
|
-
| [@teo-garcia/eslint-config-shared](https://github.com/teo-garcia/eslint-config-shared)
|
|
96
|
+
| Package | Description |
|
|
97
|
+
| ------------------------------------------------------------------------------------------ | ------------------- |
|
|
98
|
+
| [@teo-garcia/eslint-config-shared](https://github.com/teo-garcia/eslint-config-shared) | ESLint rules |
|
|
99
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)
|
|
100
|
+
| [@teo-garcia/vitest-config-shared](https://github.com/teo-garcia/vitest-config-shared) | Test configuration |
|
|
101
101
|
|
|
102
102
|
## License
|
|
103
103
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teo-garcia/tsconfig-shared",
|
|
3
|
-
"version": "0.
|
|
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,16 +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
38
|
"url": "git+https://github.com/teo-garcia/tsconfig-shared.git"
|
|
34
39
|
},
|
|
35
40
|
"scripts": {
|
|
41
|
+
"check": "pnpm format:check",
|
|
36
42
|
"format": "prettier --write .",
|
|
37
43
|
"format:check": "prettier --check ."
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"prettier": "^3.8.1"
|
|
38
47
|
}
|
|
39
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
|
+
}
|