https://github.com/codennnn/tsconfig
Shared TypeScript config for my projects.
https://github.com/codennnn/tsconfig
Last synced: 13 days ago
JSON representation
Shared TypeScript config for my projects.
- Host: GitHub
- URL: https://github.com/codennnn/tsconfig
- Owner: Codennnn
- Created: 2022-11-16T06:31:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T09:45:24.000Z (over 2 years ago)
- Last Synced: 2025-02-14T04:04:09.234Z (12 months ago)
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tsconfig
> Shared [TypeScript config](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for projects.
## Install
```sh
npm install --save-dev @codennnn/tsconfig
```
## Usage
For example, if you are using **Next.js** project, edit your `tsconfig.json` like this:
```json
{
"extends": "@codennnn/tsconfig/next.json"
}
```
_This config above requires TypeScript 4.7 or later. You can find the [code here](./next.json)._
When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as `target`:
```json
{
"extends": "@codennnn/tsconfig",
"compilerOptions": {
"outDir": "dist",
"target": "ES2021"
}
}
```
## Alternatives
- [sindresorhus/tsconfig](https://github.com/sindresorhus/tsconfig)
- [voxpelli/tsconfig](https://github.com/voxpelli/tsconfig)
- [tsconfig/bases](https://github.com/tsconfig/bases)