Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.06 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.06 KB

@itaober/tsconfig

English / 简体中文

Introduction

@itaober/tsconfig provides a set of TypeScript configuration files suitable for different types of projects. Currently, it includes the following configurations:

  • base.json: Basic configuration suitable for general TypeScript projects.
  • react-library.json: Configuration for developing and publishing React component libraries.
  • react-app.json: Configuration for building and developing React applications.

Install

pnpm install @itaober/tsconfig -D

Usage

In your project's tsconfig.json file, use the extends field to inherit the appropriate configuration file.

base.json

{
  "extends": "@itaober/tsconfig/base.json"
  // Your custom configurations
}

react-app.json

{
  "extends": "@itaober/tsconfig/react-app.json"
  // Your custom configurations
}

react-library.json

{
  "extends": "@itaober/tsconfig/react-library.json"
  // Your custom configurations
}

Changelog

See the CHANGELOG.md.