npm.io
0.10.2 • Published yesterday

@langri-sha/tsconfig

Licence
MIT
Version
0.10.2
Deps
0
Size
55 kB
Vulns
0
Weekly
0

@langri-sha/tsconfig

A set of TypeScript configuration files, focused on type-checking all your TypeScript and JavaScript modules

Provides configurations for composite projects, React and Emotion, using the next JSX runtime for transforming.

Usage

Install the necessary dependencies:

npm install -D typescript @langri-sha/tsconfig

For basic settings, for example:

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@langri-sha/tsconfig"
}

For projects in monorepos:

// /workspace/tsconfig.json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@langri-sha/tsconfig",
  "references": [
    { "path": "./packages/app" }
  ]
}

// /workspace/packages/app/tsconfig.json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@langri-sha/tsconfig/project.json"
}

For React applications:

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": ["@langri-sha/tsconfig", "@langri-sha/tsconfig/react.json"]
}

For Emotion applications:

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": ["@langri-sha/tsconfig", "@langri-sha/tsconfig/emotion.json"]
}

See