Skip to content

fly-lab/tsconfig

Repository files navigation

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"]
}

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published