https://github.com/wood3n/tsconfig-base
tsconfig-base
https://github.com/wood3n/tsconfig-base
boilerplate tsconfig typescript
Last synced: 2 months ago
JSON representation
tsconfig-base
- Host: GitHub
- URL: https://github.com/wood3n/tsconfig-base
- Owner: wood3n
- License: mit
- Created: 2022-09-20T03:43:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-20T06:44:28.000Z (over 2 years ago)
- Last Synced: 2025-01-26T08:26:18.854Z (4 months ago)
- Topics: boilerplate, tsconfig, typescript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tsconfig-base

tsconfig-base
## node
```json
{
"compilerOptions": {
"lib": ["es2020"],
"baseUrl": ".",
"module": "esnext",
"moduleResolution": "node",
"target": "es6",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"pretty": true,
"noEmit": true,
"declaration": true,
"sourceMap": true,
"outDir": "lib"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "lib", "test"]
}
```## react17+
```json
{
"compilerOptions": {
"lib": ["es2020", "dom"],
"baseUrl": ".",
"module": "es2020",
"moduleResolution": "node",
"resolveJsonModule": true,
"jsx": "react-jsx",
"target": "es6",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"pretty": true,
"noEmit": true,
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "test"]
}
```