@micelio/tsconfig 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ MIT No Attribution
2
+
3
+ Copyright (c) 2026 Alejandro Ramirez Garcia and the Micelio contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
6
+ software and associated documentation files (the "Software"), to deal in the Software
7
+ without restriction, including without limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
9
+ to whom the Software is furnished to do so.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
12
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
13
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
14
+ FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16
+ DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,29 @@
1
- # Temporary Holding Version
1
+ # @micelio/tsconfig
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The base TypeScript configuration of the Micelio repositories (section 4 of the
4
+ engineering standard): `strict`, and the language level of the Node major in
5
+ `.nvmrc` (Node 22: `ES2023`, `NodeNext`).
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
+
19
+ ```json
20
+ {
21
+ "extends": "@micelio/tsconfig",
22
+ "include": ["src"]
23
+ }
24
+ ```
25
+
26
+ A repository adds only what is its own (`include`, `outDir`, a different
27
+ `module` when a framework needs it). `@types/node` is a peer dependency and the base loads it (`"types": ["node"]`); a browser-only
28
+ project sets its own `types`. The Node major moves with a MAJOR of this
29
+ package once the standard raises it.
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "@micelio/tsconfig",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "The base TypeScript configuration of the Micelio repositories (strict, Node 22).",
5
+ "license": "MIT-0",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/bogd3v/micelio-engineering.git",
10
+ "directory": "packages/tsconfig"
11
+ },
12
+ "files": [
13
+ "tsconfig.json",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "engines": {
18
+ "node": ">=22.12"
19
+ },
20
+ "peerDependencies": {
21
+ "@types/node": "^22.20.5",
22
+ "typescript": "^5.9.3"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "provenance": true
27
+ }
28
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Micelio base (Node 22)",
4
+ "compilerOptions": {
5
+ "target": "ES2023",
6
+ "lib": ["ES2023"],
7
+ "module": "NodeNext",
8
+ "moduleResolution": "NodeNext",
9
+ "strict": true,
10
+ "noUncheckedIndexedAccess": true,
11
+ "exactOptionalPropertyTypes": true,
12
+ "noImplicitOverride": true,
13
+ "noImplicitReturns": true,
14
+ "noFallthroughCasesInSwitch": true,
15
+ "isolatedModules": true,
16
+ "erasableSyntaxOnly": true,
17
+ "skipLibCheck": true,
18
+ "forceConsistentCasingInFileNames": true,
19
+ "esModuleInterop": true,
20
+ "resolveJsonModule": true,
21
+ "noEmitOnError": true,
22
+ "types": ["node"]
23
+ }
24
+ }