@theholocron/tsconfig 3.0.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/README.md +26 -0
- package/nextjs/tsconfig.json +27 -0
- package/node-next/tsconfig.json +30 -0
- package/node14/tsconfig.json +15 -0
- package/node18/tsconfig.json +15 -0
- package/package.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Typescript Config
|
|
2
|
+
|
|
3
|
+
A [Typescript configuration](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for writing typed Javascript.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save-dev @theholocron/tsconfig
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
In your projects `tsconfig.json` add the following:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"extends": "@theholcron/tsconfig/<config>/tsconfig.json"
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
There are 4 different base configurations to choose from:
|
|
22
|
+
|
|
23
|
+
1. NextJS (`@theholcron/tsconfig/nextjs/tsconfig.json`)
|
|
24
|
+
2. Node 14 (`@theholcron/tsconfig/node14/tsconfig.json`)
|
|
25
|
+
3. Node 18 (`@theholcron/tsconfig/node18/tsconfig.json`)
|
|
26
|
+
3. Node Next (`@theholcron/tsconfig/node-next/tsconfig.json`)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Next.js",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"target": "es5",
|
|
7
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"strict": false,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"module": "esnext",
|
|
15
|
+
"moduleResolution": "node",
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"isolatedModules": true,
|
|
18
|
+
"jsx": "preserve",
|
|
19
|
+
"incremental": true,
|
|
20
|
+
"paths": {
|
|
21
|
+
"@/*": ["./src/*"]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.js", "**/*.jsx"],
|
|
26
|
+
"exclude": ["node_modules"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Node Next",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"allowJs": false,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"baseUrl": "./",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"incremental": true,
|
|
13
|
+
"lib": ["esnext"],
|
|
14
|
+
"module": "esnext",
|
|
15
|
+
"moduleResolution": "node",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"outDir": "./dist",
|
|
18
|
+
"paths": {
|
|
19
|
+
"@/package": ["./package.json"],
|
|
20
|
+
"@/*": ["./src/*"]
|
|
21
|
+
},
|
|
22
|
+
"resolveJsonModule": true,
|
|
23
|
+
"skipLibCheck": true,
|
|
24
|
+
"strict": true,
|
|
25
|
+
"target": "ESNext",
|
|
26
|
+
"types": ["jest"]
|
|
27
|
+
},
|
|
28
|
+
"include": ["**/*.ts"],
|
|
29
|
+
"exclude": ["node_modules"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Node 14",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"target": "es2020",
|
|
7
|
+
"lib": [ "es2020" ],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"module": "commonjs",
|
|
13
|
+
"moduleResolution": "node"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Node 18",
|
|
4
|
+
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"target": "es2022",
|
|
7
|
+
"lib": ["es2022"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"module": "commonjs",
|
|
13
|
+
"moduleResolution": "node"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@theholocron/tsconfig",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "A Typescript configuration for checking types within the Galaxy.",
|
|
5
|
+
"homepage": "https://github.com/theholocron/configs/tree/main/packages/lint-staged-config#readme",
|
|
6
|
+
"bugs": "https://github.com/theholocron/configs/issues",
|
|
7
|
+
"repository": "https://github.com/theholocron/configs.git",
|
|
8
|
+
"license": "GPL-3.0",
|
|
9
|
+
"author": "Newton Koumantzelis",
|
|
10
|
+
"files": [
|
|
11
|
+
"nextjs/tsconfig.json",
|
|
12
|
+
"node-next/tsconfig.json",
|
|
13
|
+
"node14/tsconfig.json",
|
|
14
|
+
"node18/tsconfig.json"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"typescript": "^5.6.3"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"releases": "https://github.com/theholocron/configs/releases",
|
|
23
|
+
"wiki": "https://github.com/theholocron/configs/wiki"
|
|
24
|
+
}
|