Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/tsconfig
Shared TypeScript config for my projects
https://github.com/sindresorhus/tsconfig
config npm-package tsconfig typescript
Last synced: about 1 month ago
JSON representation
Shared TypeScript config for my projects
- Host: GitHub
- URL: https://github.com/sindresorhus/tsconfig
- Owner: sindresorhus
- License: mit
- Created: 2018-11-30T08:09:22.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-12-30T00:15:52.000Z (11 months ago)
- Last Synced: 2024-04-14T09:52:32.465Z (7 months ago)
- Topics: config, npm-package, tsconfig, typescript
- Homepage:
- Size: 23.4 KB
- Stars: 333
- Watchers: 17
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# tsconfig
> Shared [TypeScript config](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for my projects
## Install
```sh
npm install --save-dev @sindresorhus/tsconfig
```*This config requires TypeScript 5.5 or later.*
## Usage
`tsconfig.json`
```json
{
"extends": "@sindresorhus/tsconfig"
}
```When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as `target`:
```json
{
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"target": "ES2023"
}
}
```