@tofrankie/tsconfig 0.0.2 → 0.0.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/CHANGELOG.md +6 -0
- package/README.md +12 -11
- package/package.json +1 -1
- package/strict.json +17 -1
- package/vitest.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## tsconfig@0.0.3 (2026-03-30)
|
|
4
|
+
|
|
5
|
+
- Add `strictest.json` preset (formerly the `strict.json` preset)
|
|
6
|
+
- Update `strict.json` preset: disable `exactOptionalPropertyTypes`, `noUncheckedIndexedAccess`, and `noPropertyAccessFromIndexSignature`
|
|
7
|
+
- Update `vitest.json` preset: enable `noEmit`
|
|
8
|
+
|
|
3
9
|
## tsconfig@0.0.2 (2026-03-29)
|
|
4
10
|
|
|
5
11
|
- Add `node.lib.tsdown.json` preset
|
package/README.md
CHANGED
|
@@ -24,23 +24,24 @@ Create a `tsconfig.json` in your project root:
|
|
|
24
24
|
|
|
25
25
|
## Presets
|
|
26
26
|
|
|
27
|
-
Use `@tofrankie/tsconfig/<filename>` in `extends`. If the last column of the table is not
|
|
27
|
+
Use `@tofrankie/tsconfig/<filename>` in `extends`. If the last column of the table is not `-`, also add those packages to this project's devDependencies.
|
|
28
28
|
|
|
29
29
|
| Preset | Purpose (how to choose) | Extra dependencies |
|
|
30
30
|
| ---------------------- | -------------------------------------------------------- | ----------------------- |
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `node.lib.
|
|
37
|
-
| `
|
|
31
|
+
| `strictest.json` | Strictest rules | - |
|
|
32
|
+
| `strict.json` | Strict rules | - |
|
|
33
|
+
| `dom.json` | Web App / DOM API | - |
|
|
34
|
+
| `node.json` | Node scripts / services / CLI (`@tsconfig/node20`) | - |
|
|
35
|
+
| `lib.json` | npm packages to publish (independent of runtime) | - |
|
|
36
|
+
| `node.lib.json` | Node packages to publish | - |
|
|
37
|
+
| `node.lib.tsdown.json` | Node libraries for tsdown (bundler resolution, `noEmit`) | - |
|
|
38
|
+
| `react.json` | React App (bundler-agnostic) | - |
|
|
38
39
|
| `react.vite.json` | React + Vite | `vite` |
|
|
39
|
-
| `react.lib.json` | React component libraries to publish |
|
|
40
|
+
| `react.lib.json` | React component libraries to publish | - |
|
|
40
41
|
| `react.lib.vite.json` | React component libraries developed with Vite | `vite` |
|
|
41
|
-
| `vue.json` | Vue 3 App (bundler-agnostic) |
|
|
42
|
+
| `vue.json` | Vue 3 App (bundler-agnostic) | - |
|
|
42
43
|
| `vue.vite.json` | Vue 3 + Vite | `vite` |
|
|
43
|
-
| `vue.lib.json` | Vue 3 component libraries to publish |
|
|
44
|
+
| `vue.lib.json` | Vue 3 component libraries to publish | - |
|
|
44
45
|
| `vue.lib.vite.json` | Vue 3 component libraries developed with Vite | `vite` |
|
|
45
46
|
| `vitest.json` | Testing with Vitest | `@types/node`, `vitest` |
|
|
46
47
|
|
package/package.json
CHANGED
package/strict.json
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./base/tsconfig/strictest/tsconfig.json"
|
|
2
|
+
"extends": "./base/tsconfig/strictest/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// This option is part of the recommended tsconfig as of TS 5.9.
|
|
5
|
+
// Commented out for now. It's hard to land in the current ecosystem.
|
|
6
|
+
// Needs more consensus before moving forward.
|
|
7
|
+
"exactOptionalPropertyTypes": false,
|
|
8
|
+
|
|
9
|
+
// See <https://www.semver-ts.org/formal-spec/5-compiler-considerations.html#strictness>
|
|
10
|
+
// Part of the recommended tsconfig as of TS 5.9.
|
|
11
|
+
// Flags starting with `no` are likely to have false positives,
|
|
12
|
+
// So they are not suitable for existing codebases, but are recommended for new codebases,
|
|
13
|
+
// as well as libraries that need to be more strict about their types.
|
|
14
|
+
// See also <https://github.com/vuejs/tsconfig/issues/38#issuecomment-3524621112> for more discussion.
|
|
15
|
+
"noUncheckedIndexedAccess": false,
|
|
16
|
+
|
|
17
|
+
"noPropertyAccessFromIndexSignature": false
|
|
18
|
+
}
|
|
3
19
|
}
|