Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 778 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 778 Bytes

tsconfig

These are base shared tsconfig.jsons from which all other tsconfig.json's inherit from.

Config files

  • Base config
  • React config
  • React Native config
  • Next.js Config
  • Preact config
  • Node.js config

Installation

npm install -D @fly-lab/tsconfig
yarn add -D @fly-lab/tsconfig
pnpm install -D @fly-lab/tsconfig

Example Usage

For Next.js app

Extend your project tsconfig.json

{
  "extends": "@fly-lab/tsconfig/nextjs.json",
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}

For React app

Extend your project tsconfig.json

{
  "extends": "@fly-lab/tsconfig/react.json",
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}