@tuturuuu/typescript-config 0.1.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 +43 -0
- package/base.json +28 -0
- package/jsr.json +11 -0
- package/nextjs.json +20 -0
- package/package.json +9 -0
- package/react-library.json +8 -0
- package/typecheck.json +30 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @tuturuuu/typescript-config
|
|
2
|
+
|
|
3
|
+
Shared TypeScript configurations for Tuturuuu Platform.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --dev @tuturuuu/typescript-config
|
|
9
|
+
# or
|
|
10
|
+
yarn add --dev @tuturuuu/typescript-config
|
|
11
|
+
# or
|
|
12
|
+
bun add -D @tuturuuu/typescript-config
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### Next.js Projects
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"extends": "@tuturuuu/typescript-config/nextjs.json"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Base Configuration
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"extends": "@tuturuuu/typescript-config/base.json"
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
This package contains reusable TypeScript configurations. To modify:
|
|
36
|
+
|
|
37
|
+
1. Update the JSON configuration files
|
|
38
|
+
2. Test in a project
|
|
39
|
+
3. Commit changes
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT © [Tuturuuu](https://github.com/tutur3u)
|
package/base.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Default",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"incremental": true,
|
|
7
|
+
"composite": true,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"inlineSources": false,
|
|
13
|
+
"noUnusedLocals": true,
|
|
14
|
+
"noUnusedParameters": false,
|
|
15
|
+
"preserveWatchOutput": true,
|
|
16
|
+
"strictNullChecks": true,
|
|
17
|
+
"allowJs": false,
|
|
18
|
+
"lib": ["esnext", "DOM", "DOM.Iterable"],
|
|
19
|
+
"module": "NodeNext",
|
|
20
|
+
"moduleDetection": "force",
|
|
21
|
+
"moduleResolution": "NodeNext",
|
|
22
|
+
"noUncheckedIndexedAccess": true,
|
|
23
|
+
"resolveJsonModule": true,
|
|
24
|
+
"skipLibCheck": true,
|
|
25
|
+
"strict": true,
|
|
26
|
+
"target": "esnext"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/jsr.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://jsr.io/schema/config-file.v1.json",
|
|
3
|
+
"name": "@tuturuuu/typescript-config",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./base.json": "./base.json",
|
|
8
|
+
"./nextjs.json": "./nextjs.json",
|
|
9
|
+
"./react-library.json": "./react-library.json"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/nextjs.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Next.js",
|
|
4
|
+
"extends": "./base.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"plugins": [
|
|
7
|
+
{
|
|
8
|
+
"name": "next"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"moduleResolution": "Bundler",
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"declaration": false,
|
|
17
|
+
"declarationMap": false,
|
|
18
|
+
"composite": false
|
|
19
|
+
}
|
|
20
|
+
}
|
package/package.json
ADDED
package/typecheck.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Type Check Only",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"incremental": true,
|
|
7
|
+
"composite": false,
|
|
8
|
+
"declaration": false,
|
|
9
|
+
"declarationMap": false,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"inlineSources": false,
|
|
13
|
+
"noUnusedLocals": true,
|
|
14
|
+
"noUnusedParameters": false,
|
|
15
|
+
"preserveWatchOutput": true,
|
|
16
|
+
"strictNullChecks": true,
|
|
17
|
+
"allowJs": false,
|
|
18
|
+
"lib": ["esnext", "DOM", "DOM.Iterable"],
|
|
19
|
+
"module": "NodeNext",
|
|
20
|
+
"moduleDetection": "force",
|
|
21
|
+
"moduleResolution": "NodeNext",
|
|
22
|
+
"noUncheckedIndexedAccess": true,
|
|
23
|
+
"resolveJsonModule": true,
|
|
24
|
+
"skipLibCheck": true,
|
|
25
|
+
"strict": true,
|
|
26
|
+
"noEmit": true,
|
|
27
|
+
"target": "esnext",
|
|
28
|
+
"jsx": "react-jsx"
|
|
29
|
+
}
|
|
30
|
+
}
|