@tractorbeam/typescript-config 0.2.0 → 0.4.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/next.json CHANGED
@@ -1,4 +1,20 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "@tsconfig/bases/next"
3
+ "compilerOptions": {
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "preserve",
15
+ "incremental": true,
16
+ "plugins": [{ "name": "next" }]
17
+ },
18
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
19
+ "exclude": ["node_modules"]
4
20
  }
package/node.json CHANGED
@@ -1,4 +1,18 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "@tsconfig/bases/node-lts"
3
+ "compilerOptions": {
4
+ "lib": [
5
+ "es2024",
6
+ "ESNext.Array",
7
+ "ESNext.Collection",
8
+ "ESNext.Iterator",
9
+ "ESNext.Promise"
10
+ ],
11
+ "module": "nodenext",
12
+ "target": "es2024",
13
+ "strict": true,
14
+ "esModuleInterop": true,
15
+ "skipLibCheck": true,
16
+ "moduleResolution": "nodenext"
17
+ }
4
18
  }
package/node22.json CHANGED
@@ -1,4 +1,12 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "@tsconfig/bases/node22"
3
+ "compilerOptions": {
4
+ "lib": ["es2024", "ESNext.Array", "ESNext.Collection", "ESNext.Iterator"],
5
+ "module": "nodenext",
6
+ "target": "es2022",
7
+ "strict": true,
8
+ "esModuleInterop": true,
9
+ "skipLibCheck": true,
10
+ "moduleResolution": "nodenext"
11
+ }
4
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tractorbeam/typescript-config",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Shared tsconfig presets for Tractorbeam projects",
5
5
  "keywords": [
6
6
  "tractorbeam",
@@ -32,16 +32,15 @@
32
32
  "./next": "./next.json",
33
33
  "./tanstack-start": "./tanstack-start.json",
34
34
  "./vite": "./vite.json",
35
- "./cloudflare-workers": "./cloudflare-workers.json"
35
+ "./cloudflare-workers": "./cloudflare-workers.json",
36
+ "./presets": "./presets.ts"
36
37
  },
37
38
  "files": [
38
39
  "*.json",
40
+ "*.ts",
39
41
  "package.json",
40
42
  "README.md"
41
43
  ],
42
- "dependencies": {
43
- "@tsconfig/bases": "^1.0.16"
44
- },
45
44
  "publishConfig": {
46
45
  "access": "public",
47
46
  "provenance": true
package/presets.ts ADDED
@@ -0,0 +1,19 @@
1
+ import cloudflareWorkers from "./cloudflare-workers.json" with { type: "json" };
2
+ import next from "./next.json" with { type: "json" };
3
+ import node from "./node.json" with { type: "json" };
4
+ import node22 from "./node22.json" with { type: "json" };
5
+ import react from "./react.json" with { type: "json" };
6
+ import strictest from "./strictest.json" with { type: "json" };
7
+ import tanstackStart from "./tanstack-start.json" with { type: "json" };
8
+ import vite from "./vite.json" with { type: "json" };
9
+
10
+ export const presets: Record<string, Record<string, unknown>> = {
11
+ "cloudflare-workers": cloudflareWorkers,
12
+ next,
13
+ node,
14
+ node22,
15
+ react,
16
+ strictest,
17
+ "tanstack-start": tanstackStart,
18
+ vite,
19
+ };
package/react.json CHANGED
@@ -1,4 +1,23 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "@tsconfig/bases/vite-react"
3
+ "compilerOptions": {
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "useDefineForClassFields": true,
7
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
8
+ "module": "ESNext",
9
+ "skipLibCheck": true,
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "verbatimModuleSyntax": true,
13
+ "moduleDetection": "force",
14
+ "noEmit": true,
15
+ "jsx": "react-jsx",
16
+ "strict": true,
17
+ "noUnusedLocals": true,
18
+ "noUnusedParameters": true,
19
+ "erasableSyntaxOnly": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
22
+ }
4
23
  }
package/strictest.json CHANGED
@@ -1,4 +1,19 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "@tsconfig/bases/strictest"
3
+ "compilerOptions": {
4
+ "strict": true,
5
+ "allowUnusedLabels": false,
6
+ "allowUnreachableCode": false,
7
+ "exactOptionalPropertyTypes": true,
8
+ "noFallthroughCasesInSwitch": true,
9
+ "noImplicitOverride": true,
10
+ "noImplicitReturns": true,
11
+ "noPropertyAccessFromIndexSignature": true,
12
+ "noUncheckedIndexedAccess": true,
13
+ "noUnusedLocals": true,
14
+ "noUnusedParameters": true,
15
+ "isolatedModules": true,
16
+ "esModuleInterop": true,
17
+ "skipLibCheck": true
18
+ }
4
19
  }