Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fly-lab/tsconfig

fly-lab16MIT3.0.1

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

typescript, tsconfig, react typescript, nextjs typescript, library

readme

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

changelog

@fly-lab/tsconfig

3.0.1

Patch Changes

  • Unknown compiler option fixed

3.0.0

Major Changes

  • Production release

2.3.0

Minor Changes

  • Apply changeset