@intune/typescript-config 1.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 +41 -0
- package/base.json +21 -0
- package/nextjs.json +13 -0
- package/package.json +20 -0
- package/react-library.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# intune/typescript-config
|
|
2
|
+
|
|
3
|
+
Shared `tsconfig` presets used across Intune repositories.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -D intune/typescript-config typescript
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Available configs
|
|
12
|
+
|
|
13
|
+
- `intune/typescript-config/base.json`
|
|
14
|
+
- `intune/typescript-config/nextjs.json`
|
|
15
|
+
- `intune/typescript-config/react-library.json`
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
### Next.js app (`tsconfig.json`)
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"extends": "intune/typescript-config/nextjs.json"
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### React library (`tsconfig.json`)
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"extends": "intune/typescript-config/react-library.json"
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Generic TypeScript project (`tsconfig.json`)
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"extends": "intune/typescript-config/base.json"
|
|
40
|
+
}
|
|
41
|
+
```
|
package/base.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"rootDir": "./src",
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"incremental": false,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"lib": ["es2022", "DOM", "DOM.Iterable"],
|
|
12
|
+
"module": "NodeNext",
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"moduleResolution": "NodeNext",
|
|
15
|
+
"noUncheckedIndexedAccess": true,
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"target": "ES2022"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/nextjs.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./base.json",
|
|
3
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"plugins": [{ "name": "next" }],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Bundler",
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"jsx": "preserve",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
}
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@intune/typescript-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"base.json",
|
|
8
|
+
"nextjs.json",
|
|
9
|
+
"react-library.json"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
"./base.json": "./base.json",
|
|
13
|
+
"./nextjs.json": "./nextjs.json",
|
|
14
|
+
"./react-library.json": "./react-library.json",
|
|
15
|
+
"./nestjs.json": "./nestjs.json"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"typescript": "^6.0.2"
|
|
19
|
+
}
|
|
20
|
+
}
|