Skip to content
sindresorhusPublic

About

Shared TypeScript config for my projects

Topics

Resources

Code of conduct

Contributing

Stars

377 stars

Watchers

14 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

Repository files navigation

tsconfig

Shared TypeScript config for my projects

This config makes TypeScript not do any polyfilling, so only use syntax and features available in the JavaScript environments you target.

Install

npm install --save-dev @sindresorhus/tsconfig

This config requires TypeScript >=6.0 and Node.js >=22.

Usage

tsconfig.json

{
	"extends": "@sindresorhus/tsconfig"
}

TypeScript no longer includes @types/node automatically. If your project uses Node.js APIs, install @types/node and add it to types:

{
	"extends": "@sindresorhus/tsconfig",
	"compilerOptions": {
		"types": ["node"]
	}
}

About

Shared TypeScript config for my projects

Topics

Resources

Code of conduct

Contributing

Stars

377 stars

Watchers

14 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors