@micelio/tsconfig 0.1.0 → 0.2.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 CHANGED
@@ -4,6 +4,18 @@ The base TypeScript configuration of the Micelio repositories (section 4 of the
4
4
  engineering standard): `strict`, and the language level of the Node major in
5
5
  `.nvmrc` (Node 22: `ES2023`, `NodeNext`).
6
6
 
7
+ Beyond `strict`, the base turns on:
8
+
9
+ | Option | What it catches |
10
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------- |
11
+ | `noUncheckedIndexedAccess` | An element read by index or key and used as if it could not be `undefined`. |
12
+ | `exactOptionalPropertyTypes` | An optional property set to `undefined` when its type does not say `undefined`. |
13
+ | `noImplicitOverride` | A member that overrides one of the base class without `override`. |
14
+ | `noImplicitReturns` | A function that returns a value on some paths and falls off the end on others. |
15
+ | `noFallthroughCasesInSwitch` | A non-empty `case` that runs into the next one. |
16
+ | `isolatedModules` | Code a compiler that reads one file at a time cannot translate, such as a read of an ambient `const enum`. |
17
+ | `erasableSyntaxOnly` | Syntax that cannot be removed to leave JavaScript: `enum`, a runtime `namespace`, a constructor parameter property. |
18
+
7
19
  ```json
8
20
  {
9
21
  "extends": "@micelio/tsconfig",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micelio/tsconfig",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "The base TypeScript configuration of the Micelio repositories (strict, Node 22).",
5
5
  "license": "MIT-0",
6
6
  "type": "module",
package/tsconfig.json CHANGED
@@ -7,6 +7,13 @@
7
7
  "module": "NodeNext",
8
8
  "moduleResolution": "NodeNext",
9
9
  "strict": true,
10
+ "noUncheckedIndexedAccess": true,
11
+ "exactOptionalPropertyTypes": true,
12
+ "noImplicitOverride": true,
13
+ "noImplicitReturns": true,
14
+ "noFallthroughCasesInSwitch": true,
15
+ "isolatedModules": true,
16
+ "erasableSyntaxOnly": true,
10
17
  "skipLibCheck": true,
11
18
  "forceConsistentCasingInFileNames": true,
12
19
  "esModuleInterop": true,