@djangocfg/typescript-config 1.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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Reforms.ai
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.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @djangocfg/typescript-config
2
+
3
+ Shared TypeScript configuration for the monorepo.
4
+
5
+ ## What's Inside
6
+
7
+ - **base.json** - Base TypeScript config
8
+ - **nextjs.json** - Next.js specific config
9
+ - **react-library.json** - React library config
10
+
11
+ ## Usage
12
+
13
+ ### Next.js App
14
+
15
+ ```json
16
+ {
17
+ "extends": "@djangocfg/typescript-config/nextjs.json",
18
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
19
+ "exclude": ["node_modules"]
20
+ }
21
+ ```
22
+
23
+ ### React Library/Package
24
+
25
+ ```json
26
+ {
27
+ "extends": "@djangocfg/typescript-config/react-library.json",
28
+ "include": ["src/**/*"],
29
+ "exclude": ["node_modules", "dist"]
30
+ }
31
+ ```
32
+
33
+ ### Base Config
34
+
35
+ ```json
36
+ {
37
+ "extends": "@djangocfg/typescript-config/base.json",
38
+ "compilerOptions": {
39
+ // Your overrides
40
+ }
41
+ }
42
+ ```
43
+
44
+ ## Features
45
+
46
+ - **Strict Mode** - Enabled for type safety
47
+ - **Path Aliases** - Configured for monorepo
48
+ - **Module Resolution** - ESNext with bundler resolution
49
+ - **JSX Support** - React 19 compatible
50
+
51
+ ## Settings
52
+
53
+ All configs include:
54
+ - `strict: true`
55
+ - `esModuleInterop: true`
56
+ - `skipLibCheck: true`
57
+ - `resolveJsonModule: true`
58
+ - `isolatedModules: true`
package/base.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "esModuleInterop": true,
7
+ "incremental": false,
8
+ "isolatedModules": true,
9
+ "lib": ["es2022", "DOM", "DOM.Iterable"],
10
+ "module": "NodeNext",
11
+ "moduleDetection": "force",
12
+ "moduleResolution": "NodeNext",
13
+ "noUncheckedIndexedAccess": true,
14
+ "resolveJsonModule": true,
15
+ "skipLibCheck": true,
16
+ "strict": true,
17
+ "target": "ES2022"
18
+ }
19
+ }
package/nextjs.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "plugins": [{ "name": "next" }],
6
+ "module": "ESNext",
7
+ "allowJs": true,
8
+ "jsx": "preserve",
9
+ "moduleResolution": "bundler",
10
+ "resolveJsonModule": true,
11
+ "allowSyntheticDefaultImports": true,
12
+ "esModuleInterop": true,
13
+ "skipLibCheck": true,
14
+ "strict": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "declaration": true,
17
+ "declarationMap": true,
18
+ "sourceMap": true,
19
+ "isolatedModules": true,
20
+ "incremental": false,
21
+ "target": "ES2020",
22
+ "lib": ["dom", "dom.iterable", "es6", "es2020"]
23
+ },
24
+ "include": ["src/**/*"],
25
+ "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
26
+ }
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@djangocfg/typescript-config",
3
+ "version": "1.0.1",
4
+ "author": {
5
+ "name": "DjangoCFG",
6
+ "url": "https://djangocfg.com"
7
+ },
8
+ "license": "MIT",
9
+ "description": "Shared TypeScript configurations for Unrealon projects",
10
+ "main": "base.json",
11
+ "exports": {
12
+ "./base.json": "./base.json",
13
+ "./nextjs.json": "./nextjs.json",
14
+ "./react-library.json": "./react-library.json"
15
+ },
16
+ "files": [
17
+ "base.json",
18
+ "nextjs.json",
19
+ "react-library.json",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ }
26
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx",
6
+ "module": "esnext",
7
+ "moduleResolution": "bundler",
8
+ "noEmit": true,
9
+ "lib": ["dom", "dom.iterable", "esnext"]
10
+ }
11
+ }