@theholocron/tsconfig 7.17.0 → 7.18.1

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
@@ -29,3 +29,13 @@ Targets the current Node LTS feature set. All theholocron projects use this:
29
29
  "extends": "@theholocron/tsconfig/node-lts"
30
30
  }
31
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"
40
+ }
41
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/tsconfig",
3
- "version": "7.17.0",
3
+ "version": "7.18.1",
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
+ }