@vortiquo/typescript-config 0.0.1

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,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vortiquo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,123 @@
1
+ # @vortiquo/typescript-config
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@vortiquo/typescript-config.svg)](https://www.npmjs.com/package/@vortiquo/typescript-config)
4
+ [![license](https://img.shields.io/npm/l/@vortiquo/typescript-config.svg)](https://github.com/vortiquo/typescript-config/blob/main/LICENSE)
5
+
6
+ Strict, modern TypeScript configurations for professional projects.
7
+
8
+ ## Features
9
+
10
+ - 🔒 **Strict by default** - Catches bugs at compile time
11
+ - 🚀 **Modern** - ES2025 target, bundler module resolution
12
+ - 📦 **Ready-to-use presets** - Next.js, React, Node.js, NestJS
13
+ - 🎯 **Zero config** - Just extend and go
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ npm install -D @vortiquo/typescript-config
19
+ # or
20
+ pnpm add -D @vortiquo/typescript-config
21
+ # or
22
+ yarn add -D @vortiquo/typescript-config
23
+ ```
24
+
25
+ ## Available Configs
26
+
27
+ | Config | Use Case |
28
+ | --------------- | ------------------------------------- |
29
+ | `nextjs` | Next.js applications |
30
+ | `server` | Backend APIs (Fastify, Express, Hono) |
31
+ | `nestjs` | NestJS applications |
32
+ | `react-library` | React/UI component libraries |
33
+ | `node-library` | Shared Node.js packages |
34
+
35
+ ## Usage
36
+
37
+ Create a `tsconfig.json` in your project:
38
+
39
+ ### Next.js
40
+
41
+ ```json
42
+ {
43
+ "extends": "@vortiquo/typescript-config/nextjs",
44
+ "compilerOptions": {
45
+ "baseUrl": ".",
46
+ "paths": {
47
+ "@/*": ["./src/*"]
48
+ }
49
+ },
50
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
51
+ "exclude": ["node_modules"]
52
+ }
53
+ ```
54
+
55
+ ### Backend API (Fastify/Express/Hono)
56
+
57
+ ```json
58
+ {
59
+ "extends": "@vortiquo/typescript-config/server",
60
+ "compilerOptions": {
61
+ "outDir": "./dist",
62
+ "rootDir": "./src"
63
+ },
64
+ "include": ["src"],
65
+ "exclude": ["node_modules", "dist"]
66
+ }
67
+ ```
68
+
69
+ ### NestJS
70
+
71
+ ```json
72
+ {
73
+ "extends": "@vortiquo/typescript-config/nestjs",
74
+ "compilerOptions": {
75
+ "outDir": "./dist",
76
+ "rootDir": "./src"
77
+ },
78
+ "include": ["src"],
79
+ "exclude": ["node_modules", "dist"]
80
+ }
81
+ ```
82
+
83
+ ### React Component Library
84
+
85
+ ```json
86
+ {
87
+ "extends": "@vortiquo/typescript-config/react-library",
88
+ "compilerOptions": {
89
+ "outDir": "./dist"
90
+ },
91
+ "include": ["src"],
92
+ "exclude": ["node_modules", "dist"]
93
+ }
94
+ ```
95
+
96
+ ### Node.js Library
97
+
98
+ ```json
99
+ {
100
+ "extends": "@vortiquo/typescript-config/node-library",
101
+ "compilerOptions": {
102
+ "outDir": "./dist",
103
+ "rootDir": "./src"
104
+ },
105
+ "include": ["src"],
106
+ "exclude": ["node_modules", "dist"]
107
+ }
108
+ ```
109
+
110
+ ## What's Included
111
+
112
+ All configs extend from a strict base with:
113
+
114
+ - **Strict type checking** - `strict`, `noUncheckedIndexedAccess`,
115
+ `exactOptionalPropertyTypes`
116
+ - **Code quality** - `noUnusedLocals`, `noUnusedParameters`, `noImplicitReturns`
117
+ - **Modern output** - ES2025 target, bundler module resolution
118
+ - **Best practices** - `verbatimModuleSyntax`, `isolatedModules`,
119
+ `forceConsistentCasingInFileNames`
120
+
121
+ ## License
122
+
123
+ MIT © [Vortiquo](https://vortiquo.com)
package/base.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "esModuleInterop": true,
5
+ "skipLibCheck": true,
6
+ "resolveJsonModule": true,
7
+ "verbatimModuleSyntax": true,
8
+
9
+ "target": "ES2025",
10
+ "module": "ES2025",
11
+ "moduleResolution": "bundler",
12
+ "lib": ["ES2025"],
13
+
14
+ "allowJs": false,
15
+ "moduleDetection": "force",
16
+ "isolatedModules": true,
17
+ "useDefineForClassFields": true,
18
+
19
+ "strict": true,
20
+ "noUncheckedIndexedAccess": true,
21
+ "noImplicitOverride": true,
22
+ "exactOptionalPropertyTypes": true,
23
+ "noPropertyAccessFromIndexSignature": true,
24
+
25
+ "allowUnreachableCode": false,
26
+ "allowUnusedLabels": false,
27
+ "noFallthroughCasesInSwitch": true,
28
+ "noImplicitReturns": true,
29
+ "noUnusedLocals": true,
30
+ "noUnusedParameters": true,
31
+
32
+ "composite": false,
33
+ "preserveWatchOutput": true,
34
+ "forceConsistentCasingInFileNames": true,
35
+ "noErrorTruncation": true
36
+ }
37
+ }
package/nestjs.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./server.json",
4
+ "compilerOptions": {
5
+ "experimentalDecorators": true,
6
+ "emitDecoratorMetadata": true,
7
+ "module": "CommonJS",
8
+ "moduleResolution": "Node"
9
+ }
10
+ }
package/nextjs.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "plugins": [{ "name": "next" }],
6
+ "jsx": "preserve",
7
+ "noEmit": true,
8
+ "allowJs": false,
9
+
10
+ "lib": ["ES2025", "DOM", "DOM.Iterable"],
11
+
12
+ "module": "ESNext",
13
+ "moduleResolution": "Bundler",
14
+
15
+ "noPropertyAccessFromIndexSignature": false
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "module": "NodeNext",
6
+ "moduleResolution": "NodeNext",
7
+ "target": "ES2022",
8
+ "lib": ["ES2025"],
9
+
10
+ "declaration": true,
11
+ "declarationMap": true,
12
+ "sourceMap": true,
13
+ "noEmit": false,
14
+
15
+ "types": ["node"]
16
+ }
17
+ }
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@vortiquo/typescript-config",
3
+ "version": "0.0.1",
4
+ "description": "Strict, modern TypeScript configurations for Next.js, React, Node.js, and NestJS projects",
5
+ "license": "MIT",
6
+ "author": "Vortiquo <dev@vortiquo.com>",
7
+ "homepage": "https://github.com/vortiquo/typescript-config#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/vortiquo/typescript-config.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/vortiquo/typescript-config/issues"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "keywords": [
19
+ "typescript",
20
+ "tsconfig",
21
+ "config",
22
+ "nextjs",
23
+ "react",
24
+ "nodejs",
25
+ "nestjs",
26
+ "strict",
27
+ "shared-config"
28
+ ],
29
+ "exports": {
30
+ "./nextjs": "./nextjs.json",
31
+ "./nestjs": "./nestjs.json",
32
+ "./node-library": "./node-library.json",
33
+ "./react-library": "./react-library.json",
34
+ "./server": "./server.json"
35
+ },
36
+ "files": [
37
+ "*.json",
38
+ "README.md",
39
+ "LICENSE"
40
+ ],
41
+ "devDependencies": {
42
+ "@commitlint/cli": "^20.2.0",
43
+ "@commitlint/config-conventional": "^20.2.0",
44
+ "@ls-lint/ls-lint": "^2.3.1",
45
+ "@next/eslint-plugin-next": "^16.1.0",
46
+ "cz-conventional-changelog": "^3.3.0",
47
+ "husky": "^9.1.7",
48
+ "lint-staged": "^16.2.7",
49
+ "prettier": "^3.7.4"
50
+ },
51
+ "scripts": {
52
+ "prepare": "husky"
53
+ }
54
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx",
6
+ "lib": ["ES2025", "DOM", "DOM.Iterable"],
7
+
8
+ "declaration": true,
9
+ "declarationMap": true,
10
+
11
+ "noEmit": false,
12
+
13
+ "types": ["react", "react-dom"]
14
+ }
15
+ }
package/server.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./bases.json",
4
+ "compilerOptions": {
5
+ "lib": ["ES2025"],
6
+ "target": "ES2025",
7
+ "module": "NodeNext",
8
+ "moduleResolution": "NodeNext",
9
+
10
+ "outDir": "./dist",
11
+ "rootDir": "./src",
12
+ "declaration": true,
13
+ "declarationMap": true,
14
+ "sourceMap": true,
15
+
16
+ "types": ["node"],
17
+
18
+ "noEmit": false,
19
+ "resolveJsonModule": true
20
+ }
21
+ }