@aprx/tsconfig 0.1.0 → 0.1.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 Aperrix
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 CHANGED
@@ -5,10 +5,10 @@
5
5
  - Install the package
6
6
 
7
7
  ```bash
8
- npm install -D @aprx/tsconfig typescript
8
+ npm install --dev @aprx/tsconfig typescript
9
9
  ```
10
10
 
11
- - Choose which `tsconfig.json` you need from the [list](#list-of-tsconfigs) below and add it to your project
11
+ - Choose which preset you need from the [list](#presets) below and add it to your `tsconfig.json`
12
12
 
13
13
  ```json
14
14
  {
@@ -16,24 +16,26 @@ npm install -D @aprx/tsconfig typescript
16
16
  }
17
17
  ```
18
18
 
19
- ## List of TSConfigs
19
+ ## Presets
20
20
 
21
21
  There are two categories of configurations: those using `tsc` and those using any other bundler.
22
22
 
23
- | Using `tsc` | Includes DOM | Use case |
24
- |------------------------------------------------|:------------------:|-------------------------------------------------------------------- |
25
- | `"extends": "@aprx/tsconfig/tsc"` | :x: | Basic configuration, customize it as you wish. |
26
- | `"extends": "@aprx/tsconfig/tsc/app"` | :white_check_mark: | Preset for building an **application**. Includes `DOM` and `JSX`. |
27
- | `"extends": "@aprx/tsconfig/tsc/lib"` | :x: | Preset for building a **library**. |
28
- | `"extends": "@aprx/tsconfig/tsc/monorepo-lib"` | :x: | Preset for building a **library in a monorepo**. |
29
-
30
- | Using another bundler | Includes DOM | Use case |
31
- |------------------------------------------------|:------------------:|-------------------------------------------------------------------- |
32
- | `"extends": "@aprx/tsconfig"` | :x: | Basic configuration, customize it as you wish. |
33
- | `"extends": "@aprx/tsconfig/app"` | :white_check_mark: | Preset for building an **application**. Includes `DOM` and `JSX`. |
34
- | `"extends": "@aprx/tsconfig/lib"` | :x: | Preset for building a **library**. |
35
- | `"extends": "@aprx/tsconfig/monorepo-lib"` | :x: | Preset for building a **library in a monorepo**. |
36
- | `"extends": "@aprx/tsconfig/nextjs"` | :white_check_mark: | Preset for building a Next.js application. Includes [recommended properties][nextjs-config]. |
23
+ ### Reference
24
+
25
+ | Presets using `tsc` | Includes DOM | Use case |
26
+ |---------------------------------------|:------------------:|-----------------------------------------------------------------------|
27
+ | ```@aprx/tsconfig/tsc``` | :x: | Base configuration, customize it as you wish |
28
+ | ```@aprx/tsconfig/tsc/app``` | :white_check_mark: | Browser/DOM application. Includes `DOM` and `JSX` |
29
+ | ```@aprx/tsconfig/tsc/lib``` | :x: | Node.js library or backend service |
30
+ | ```@aprx/tsconfig/tsc/monorepo-lib``` | :x: | Node.js in a monorepo |
31
+
32
+ | Presets using another bundler | Includes DOM | Use case |
33
+ |---------------------------------------|:------------------:|-----------------------------------------------------------------------|
34
+ | ```@aprx/tsconfig``` | :x: | Base configuration, customize it as you wish |
35
+ | ```@aprx/tsconfig/app``` | :white_check_mark: | Browser/DOM application. Includes `DOM` and `JSX` |
36
+ | ```@aprx/tsconfig/lib``` | :x: | Node.js library or backend service |
37
+ | ```@aprx/tsconfig/monorepo-lib``` | :x: | Node.js in a monorepo |
38
+ | ```@aprx/tsconfig/nextjs``` | :white_check_mark: | Next.js application. Includes [recommended properties][nextjs-config] |
37
39
 
38
40
  ## Resources
39
41
 
package/package.json CHANGED
@@ -1,31 +1,30 @@
1
1
  {
2
- "name": "@aprx/tsconfig",
3
- "description": "A collection of Typescript configurations",
4
- "version": "0.1.0",
5
- "license": "MIT",
6
- "author": "Aperrix",
7
- "homepage": "https://github.com/aperrix/code-quality-tools/packages/tsconfig#readme",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/aperrix/code-quality-tools.git",
11
- "directory": "packages/tsconfig"
12
- },
13
- "exports": {
14
- ".": "./src/base.json",
15
- "./app": "./src/app.json",
16
- "./lib": "./src/lib.json",
17
- "./monorepo-lib": "./src/monorepo-lib.json",
18
- "./nextjs": "./src/nextjs.json",
19
-
20
- "./tsc": "./src/tsc/base.json",
21
- "./tsc/app": "./src/tsc/app.json",
22
- "./tsc/lib": "./src/tsc/lib.json",
23
- "./tsc/monorepo-lib": "./src/tsc/monorepo-lib.json"
24
- },
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "peerDependencies": {
29
- "typescript": "^5.6.0"
30
- }
2
+ "name": "@aprx/tsconfig",
3
+ "version": "0.1.1",
4
+ "description": "A collection of Typescript configurations",
5
+ "homepage": "https://github.com/aperrix/code-quality-tools/packages/tsconfig#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/aperrix/code-quality-tools.git",
9
+ "directory": "packages/tsconfig"
10
+ },
11
+ "license": "MIT",
12
+ "author": "Aperrix",
13
+ "exports": {
14
+ ".": "./src/base.json",
15
+ "./app": "./src/app.json",
16
+ "./lib": "./src/lib.json",
17
+ "./monorepo-lib": "./src/monorepo-lib.json",
18
+ "./nextjs": "./src/nextjs.json",
19
+ "./tsc": "./src/tsc/base.json",
20
+ "./tsc/app": "./src/tsc/app.json",
21
+ "./tsc/lib": "./src/tsc/lib.json",
22
+ "./tsc/monorepo-lib": "./src/tsc/monorepo-lib.json"
23
+ },
24
+ "peerDependencies": {
25
+ "typescript": "^5.6.0"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ }
31
30
  }
package/src/app.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* If NOT transpiling with TypeScript: */
30
- "module": "preserve",
31
- "noEmit": true,
29
+ /* If NOT transpiling with TypeScript: */
30
+ "module": "preserve",
31
+ "noEmit": true,
32
32
 
33
- /* If interact with the DOM: */
34
- "jsx": "preserve",
35
- "lib": ["es2022", "dom", "dom.iterable"]
36
- }
33
+ /* If interact with the DOM: */
34
+ "jsx": "preserve",
35
+ "lib": ["es2022", "dom", "dom.iterable"]
36
+ }
37
37
  }
package/src/base.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* If NOT transpiling with TypeScript: */
30
- "module": "preserve",
31
- "noEmit": true,
29
+ /* If NOT transpiling with TypeScript: */
30
+ "module": "preserve",
31
+ "noEmit": true,
32
32
 
33
- /* If interact with the DOM: */
34
- "jsx": "preserve",
35
- "lib": ["es2022"]
36
- }
33
+ /* If interact with the DOM: */
34
+ "jsx": "preserve",
35
+ "lib": ["es2022"]
36
+ }
37
37
  }
package/src/lib.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* AND if you're building for a library: */
30
- "declaration": true,
29
+ /* AND if you're building for a library: */
30
+ "declaration": true,
31
31
 
32
- /* If NOT transpiling with TypeScript: */
33
- "module": "preserve",
34
- "noEmit": true,
32
+ /* If NOT transpiling with TypeScript: */
33
+ "module": "preserve",
34
+ "noEmit": true,
35
35
 
36
- /* If DOESN'T interact with the DOM: */
37
- "lib": ["es2022"]
38
- }
36
+ /* If DOESN'T interact with the DOM: */
37
+ "lib": ["es2022"]
38
+ }
39
39
  }
@@ -1,43 +1,43 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* AND if you're building for a library: */
30
- "declaration": true,
29
+ /* AND if you're building for a library: */
30
+ "declaration": true,
31
31
 
32
- /* AND if you're building for a library in a monorepo: */
33
- "composite": true,
34
- "declarationMap": true,
32
+ /* AND if you're building for a library in a monorepo: */
33
+ "composite": true,
34
+ "declarationMap": true,
35
35
 
36
- /* If NOT transpiling with TypeScript: */
37
- "module": "preserve",
38
- "noEmit": true,
36
+ /* If NOT transpiling with TypeScript: */
37
+ "module": "preserve",
38
+ "noEmit": true,
39
39
 
40
- /* If DOESN'T interact with the DOM: */
41
- "lib": ["es2022"]
42
- }
40
+ /* If DOESN'T interact with the DOM: */
41
+ "lib": ["es2022"]
42
+ }
43
43
  }
package/src/nextjs.json CHANGED
@@ -1,56 +1,56 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Next.js Options */
5
- "jsx": "preserve",
6
- "incremental": true,
7
- "plugins": [
8
- {
9
- "name": "next"
10
- }
11
- ],
12
- "paths": {
13
- "@/*": ["./src/*"]
14
- },
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Next.js Options */
5
+ "jsx": "preserve",
6
+ "incremental": true,
7
+ "plugins": [
8
+ {
9
+ "name": "next"
10
+ }
11
+ ],
12
+ "paths": {
13
+ "@/*": ["./src/*"]
14
+ },
15
15
 
16
- /* Opinionated Options */
17
- "forceConsistentCasingInFileNames": true,
18
- "moduleResolution": "bundler",
19
- "noFallthroughCasesInSwitch": true,
20
- "noUnusedLocals": true,
21
- "exactOptionalPropertyTypes": true,
22
- "noImplicitAny": true,
23
- "erasableSyntaxOnly": true,
24
- "noUncheckedSideEffectImports": true,
16
+ /* Opinionated Options */
17
+ "forceConsistentCasingInFileNames": true,
18
+ "moduleResolution": "bundler",
19
+ "noFallthroughCasesInSwitch": true,
20
+ "noUnusedLocals": true,
21
+ "exactOptionalPropertyTypes": true,
22
+ "noImplicitAny": true,
23
+ "erasableSyntaxOnly": true,
24
+ "noUncheckedSideEffectImports": true,
25
25
 
26
- /* Base Options: */
27
- "esModuleInterop": true,
28
- "skipLibCheck": true,
29
- "target": "es2022",
30
- "allowJs": true,
31
- "resolveJsonModule": true,
32
- "moduleDetection": "force",
33
- "isolatedModules": true,
34
- "verbatimModuleSyntax": true,
26
+ /* Base Options: */
27
+ "esModuleInterop": true,
28
+ "skipLibCheck": true,
29
+ "target": "es2022",
30
+ "allowJs": true,
31
+ "resolveJsonModule": true,
32
+ "moduleDetection": "force",
33
+ "isolatedModules": true,
34
+ "verbatimModuleSyntax": true,
35
35
 
36
- /* Strictness */
37
- "strict": true,
38
- "noUncheckedIndexedAccess": true,
39
- "noImplicitOverride": true,
36
+ /* Strictness */
37
+ "strict": true,
38
+ "noUncheckedIndexedAccess": true,
39
+ "noImplicitOverride": true,
40
40
 
41
- /* If NOT transpiling with TypeScript: */
42
- "module": "preserve",
43
- "noEmit": true,
41
+ /* If NOT transpiling with TypeScript: */
42
+ "module": "preserve",
43
+ "noEmit": true,
44
44
 
45
- /* If interact with the DOM: */
46
- "lib": ["es2022", "dom", "dom.iterable"]
47
- },
48
- "include": [
49
- "next-env.d.ts",
50
- "**/*.ts",
51
- "**/*.tsx",
52
- ".next/types/**/*.ts",
53
- ".next/dev/types/**/*.ts"
54
- ],
55
- "exclude": ["node_modules"]
45
+ /* If interact with the DOM: */
46
+ "lib": ["es2022", "dom", "dom.iterable"]
47
+ },
48
+ "include": [
49
+ "next-env.d.ts",
50
+ "**/*.ts",
51
+ "**/*.tsx",
52
+ ".next/types/**/*.ts",
53
+ ".next/dev/types/**/*.ts"
54
+ ],
55
+ "exclude": ["node_modules"]
56
56
  }
package/src/tsc/app.json CHANGED
@@ -1,38 +1,38 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* If transpiling with TypeScript: */
30
- "module": "NodeNext",
31
- "outDir": "dist",
32
- "sourceMap": true,
29
+ /* If transpiling with TypeScript: */
30
+ "module": "NodeNext",
31
+ "outDir": "dist",
32
+ "sourceMap": true,
33
33
 
34
- /* If interact with the DOM: */
35
- "jsx": "preserve",
36
- "lib": ["es2022", "dom", "dom.iterable"]
37
- }
34
+ /* If interact with the DOM: */
35
+ "jsx": "preserve",
36
+ "lib": ["es2022", "dom", "dom.iterable"]
37
+ }
38
38
  }
package/src/tsc/base.json CHANGED
@@ -1,38 +1,38 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* If transpiling with TypeScript: */
30
- "module": "NodeNext",
31
- "outDir": "dist",
32
- "sourceMap": true,
29
+ /* If transpiling with TypeScript: */
30
+ "module": "NodeNext",
31
+ "outDir": "dist",
32
+ "sourceMap": true,
33
33
 
34
- /* If interact with the DOM: */
35
- "jsx": "preserve",
36
- "lib": ["es2022"]
37
- }
34
+ /* If interact with the DOM: */
35
+ "jsx": "preserve",
36
+ "lib": ["es2022"]
37
+ }
38
38
  }
package/src/tsc/lib.json CHANGED
@@ -1,40 +1,40 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* If transpiling with TypeScript: */
30
- "module": "NodeNext",
31
- "outDir": "dist",
32
- "sourceMap": true,
29
+ /* If transpiling with TypeScript: */
30
+ "module": "NodeNext",
31
+ "outDir": "dist",
32
+ "sourceMap": true,
33
33
 
34
- /* AND if you're building for a library: */
35
- "declaration": true,
34
+ /* AND if you're building for a library: */
35
+ "declaration": true,
36
36
 
37
- /* If DOESN'T interact with the DOM: */
38
- "lib": ["es2022"]
39
- }
37
+ /* If DOESN'T interact with the DOM: */
38
+ "lib": ["es2022"]
39
+ }
40
40
  }
@@ -1,44 +1,44 @@
1
1
  {
2
- "$schema": "https://www.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Opinionated Options */
5
- "forceConsistentCasingInFileNames": true,
6
- "moduleResolution": "bundler",
7
- "noFallthroughCasesInSwitch": true,
8
- "noUnusedLocals": true,
9
- "exactOptionalPropertyTypes": true,
10
- "noImplicitAny": true,
11
- "erasableSyntaxOnly": true,
12
- "noUncheckedSideEffectImports": true,
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Opinionated Options */
5
+ "forceConsistentCasingInFileNames": true,
6
+ "moduleResolution": "bundler",
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noUnusedLocals": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "noImplicitAny": true,
11
+ "erasableSyntaxOnly": true,
12
+ "noUncheckedSideEffectImports": true,
13
13
 
14
- /* Base Options: */
15
- "esModuleInterop": true,
16
- "skipLibCheck": true,
17
- "target": "es2022",
18
- "allowJs": true,
19
- "resolveJsonModule": true,
20
- "moduleDetection": "force",
21
- "isolatedModules": true,
22
- "verbatimModuleSyntax": true,
14
+ /* Base Options: */
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "target": "es2022",
18
+ "allowJs": true,
19
+ "resolveJsonModule": true,
20
+ "moduleDetection": "force",
21
+ "isolatedModules": true,
22
+ "verbatimModuleSyntax": true,
23
23
 
24
- /* Strictness */
25
- "strict": true,
26
- "noUncheckedIndexedAccess": true,
27
- "noImplicitOverride": true,
24
+ /* Strictness */
25
+ "strict": true,
26
+ "noUncheckedIndexedAccess": true,
27
+ "noImplicitOverride": true,
28
28
 
29
- /* If transpiling with TypeScript: */
30
- "module": "NodeNext",
31
- "outDir": "dist",
32
- "sourceMap": true,
29
+ /* If transpiling with TypeScript: */
30
+ "module": "NodeNext",
31
+ "outDir": "dist",
32
+ "sourceMap": true,
33
33
 
34
- /* AND if you're building for a library: */
35
- "declaration": true,
34
+ /* AND if you're building for a library: */
35
+ "declaration": true,
36
36
 
37
- /* AND if you're building for a library in a monorepo: */
38
- "composite": true,
39
- "declarationMap": true,
37
+ /* AND if you're building for a library in a monorepo: */
38
+ "composite": true,
39
+ "declarationMap": true,
40
40
 
41
- /* If DOESN'T interact with the DOM: */
42
- "lib": ["es2022"]
43
- }
41
+ /* If DOESN'T interact with the DOM: */
42
+ "lib": ["es2022"]
43
+ }
44
44
  }