@sarj/tsconfig 0.1.1 → 0.1.3
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 +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @sarj/tsconfig
|
|
2
2
|
|
|
3
3
|
Hyper-modern, maximally-strict TypeScript configs for sarj-ai projects.
|
|
4
|
-
Covers every type-safety flag in
|
|
4
|
+
Covers every type-safety flag in the flagship first-party monorepo's `tsconfig.base.json` and in its published integration SDK's `tsconfig.json`. Per-project flags (`composite`, `noEmit`, `outDir`, `jsx`, `types`) and bundler-specific module resolution are intentionally omitted — see [What's NOT in the preset](#whats-not-in-the-preset-and-why) below.
|
|
5
5
|
|
|
6
6
|
## Requires
|
|
7
7
|
|
|
@@ -37,7 +37,7 @@ For libraries that need to be less strict (e.g. mid-migration), extend the base:
|
|
|
37
37
|
|
|
38
38
|
## What's enabled
|
|
39
39
|
|
|
40
|
-
### `base.json` — modern defaults +
|
|
40
|
+
### `base.json` — modern defaults + first-party-parity strict-safety
|
|
41
41
|
|
|
42
42
|
**Module / target (TS 6 + Node 24 LTS):**
|
|
43
43
|
|
|
@@ -50,7 +50,7 @@ For libraries that need to be less strict (e.g. mid-migration), extend the base:
|
|
|
50
50
|
- `esModuleInterop` / `allowSyntheticDefaultImports`
|
|
51
51
|
- `resolveJsonModule: true`
|
|
52
52
|
|
|
53
|
-
**Type-safety hygiene (matches
|
|
53
|
+
**Type-safety hygiene (matches the first-party base config):**
|
|
54
54
|
|
|
55
55
|
- `strict: true`
|
|
56
56
|
- `noUncheckedIndexedAccess: true` — `arr[0]` is `T | undefined`
|
|
@@ -123,6 +123,6 @@ Semver. Major-bump on TypeScript major releases (currently TS 6.x). The package
|
|
|
123
123
|
|
|
124
124
|
These configs were authored by comparing against:
|
|
125
125
|
|
|
126
|
-
-
|
|
126
|
+
- a first-party `tsconfig.base.json` (Next.js + lib monorepo baseline) and the `tsconfig.json` of its published integration SDK
|
|
127
127
|
- `@tsconfig/strictest`, `@total-typescript/tsconfig`, `sindresorhus/tsconfig`, `@swan-io/tsconfig`, `vercel/style-guide`
|
|
128
128
|
- TypeScript handbook strict-mode reference and the full TS 5.0 → 6.0 changelog
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarj/tsconfig",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"packageManager": "npm@11.19.0",
|
|
4
5
|
"description": "Ultra-strict TypeScript configs for sarj-ai projects — strict.json + base.json",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"files": [
|
|
@@ -15,8 +16,7 @@
|
|
|
15
16
|
"./package.json": "./package.json"
|
|
16
17
|
},
|
|
17
18
|
"publishConfig": {
|
|
18
|
-
"access": "public"
|
|
19
|
-
"provenance": true
|
|
19
|
+
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|