@theholocron/tsconfig 7.16.0 → 7.18.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 +12 -2
- package/package.json +5 -3
- package/react/tsconfig.json +18 -0
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ In your project `tsconfig.json`, extend one of the two base configurations:
|
|
|
16
16
|
|
|
17
17
|
```json
|
|
18
18
|
{
|
|
19
|
-
|
|
19
|
+
"extends": "@theholocron/tsconfig/nextjs"
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -26,6 +26,16 @@ Targets the current Node LTS feature set. All theholocron projects use this:
|
|
|
26
26
|
|
|
27
27
|
```json
|
|
28
28
|
{
|
|
29
|
-
|
|
29
|
+
"extends": "@theholocron/tsconfig/node-lts"
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### React
|
|
34
|
+
|
|
35
|
+
Targets browser environments for React component libraries and apps. Sets `DOM` lib, `ESNext` module with `bundler` resolution, and `react-jsx` transform — no manual overrides needed for Vite-based projects:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"extends": "@theholocron/tsconfig/react"
|
|
30
40
|
}
|
|
31
41
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/tsconfig",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.18.0",
|
|
4
4
|
"description": "TypeScript base configurations for theholocron projects.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/tsconfig#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
],
|
|
19
19
|
"exports": {
|
|
20
20
|
"./nextjs": "./nextjs/tsconfig.json",
|
|
21
|
-
"./node-lts": "./node-lts/tsconfig.json"
|
|
21
|
+
"./node-lts": "./node-lts/tsconfig.json",
|
|
22
|
+
"./react": "./react/tsconfig.json"
|
|
22
23
|
},
|
|
23
24
|
"files": [
|
|
24
25
|
"nextjs/tsconfig.json",
|
|
25
|
-
"node-lts/tsconfig.json"
|
|
26
|
+
"node-lts/tsconfig.json",
|
|
27
|
+
"react/tsconfig.json"
|
|
26
28
|
],
|
|
27
29
|
"peerDependencies": {
|
|
28
30
|
"typescript": "^5"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "React (ESM, bundler)",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"target": "ES2020",
|
|
10
|
+
"jsx": "react-jsx",
|
|
11
|
+
"strict": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"forceConsistentCasingInFileNames": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"skipLibCheck": true
|
|
17
|
+
}
|
|
18
|
+
}
|