@tmlmobilidade/go-utils-tsconfig 20260828.1636.54

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 ADDED
@@ -0,0 +1,34 @@
1
+ ## @tmlmobilidade/go-utils-tsconfig
2
+
3
+ This package contains the shared TypeScript configuration for the Transportes Metropolitanos de Lisboa organization.
4
+ Centralize and standardize TypeScript settings across all projects, ensuring consistency, maintainability, and ease of setup.
5
+
6
+ ### Benefits
7
+ - Consistent TypeScript setup across projects
8
+ - Easier updates and maintenance
9
+ - Fewer configuration errors
10
+
11
+
12
+ ### Instalation
13
+ ```
14
+ npm install -D @tmlmobilidade/go-utils-tsconfig
15
+ ```
16
+
17
+ ### Options
18
+ Several options are provided depending on the project type:
19
+ - nodejs.json — For server-side NodeJS projects;
20
+ - nextjs.json — For client-side NextJS projects;
21
+ - lib.json — For projects intended to be packages imported into other projects;
22
+ - base.json — The shared config for all types (not recommended).
23
+
24
+
25
+ ### Usage
26
+ In your tsconfig.json:
27
+ ```
28
+ {
29
+ "extends": "@tmlmobilidade/go-utils-tsconfig/{your-project-type}.json",
30
+ "compilerOptions": {
31
+ // Add any project-specific overrides here
32
+ }
33
+ }
34
+ ```
package/base.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": false,
5
+ "esModuleInterop": true,
6
+ "isolatedModules": true,
7
+ "jsx": "react-jsx",
8
+ "moduleDetection": "force",
9
+ "noImplicitOverride": true,
10
+ "noUncheckedIndexedAccess": false,
11
+ "resolveJsonModule": true,
12
+ "skipLibCheck": true,
13
+ "strict": false,
14
+ "target": "es2022"
15
+ }
16
+ }
package/lib.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "lib": ["es2022"],
6
+ "module": "NodeNext",
7
+ "moduleResolution": "nodenext",
8
+ "outDir": "dist",
9
+ "strictNullChecks": false,
10
+ "types": ["node"]
11
+ },
12
+ "extends": "./base.json"
13
+ }
package/nextjs.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "incremental": true,
5
+ "jsx": "preserve",
6
+ "lib": [
7
+ "es2023",
8
+ "dom",
9
+ "dom.iterable"
10
+ ],
11
+ "module": "esnext",
12
+ "moduleResolution": "bundler",
13
+ "noEmit": true,
14
+ "outDir": "dist"
15
+ },
16
+ "extends": "./base.json"
17
+ }
package/nodejs.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "lib": ["es2022"],
5
+ "module": "NodeNext",
6
+ "moduleResolution": "nodenext",
7
+ "outDir": "dist",
8
+ "strictNullChecks": false,
9
+ "types": ["node"]
10
+ },
11
+ "extends": "./base.json"
12
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@tmlmobilidade/go-utils-tsconfig",
3
+ "description": "Shared TypeScript configuration for the Transportes Metropolitanos de Lisboa Organization!",
4
+ "version": "20260828.1636.54",
5
+ "author": {
6
+ "email": "iso@tmlmobilidade.pt",
7
+ "name": "TML-ISO"
8
+ },
9
+ "license": "AGPL-3.0-or-later",
10
+ "homepage": "https://github.com/tmlmobilidade/tsconfig#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/tmlmobilidade/tsconfig/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/tmlmobilidade/tsconfig.git"
17
+ },
18
+ "keywords": [
19
+ "public transit",
20
+ "lisboa",
21
+ "tsconfig"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "main": "./base.json"
27
+ }