Skip to content

Codennnn/tsconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsconfig

Shared TypeScript config for projects.

Install

npm install --save-dev @codennnn/tsconfig

Usage

For example, if you are using Next.js project, edit your tsconfig.json like this:

{
  "extends": "@codennnn/tsconfig/next.json"
}

This config above requires TypeScript 4.7 or later. You can find the code here.

When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as target:

{
  "extends": "@codennnn/tsconfig",
  "compilerOptions": {
    "outDir": "dist",
    "target": "ES2021"
  }
}

Alternatives

About

Shared TypeScript config for my projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published