Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 465 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 465 Bytes

TSConfig code-style

Install

pnpm add typescript -D
pnpm add @electronjs-cn/tsconfig -D

Configuring

Node Project

tsconfig.json:

{
    "extends": "@electronjs-cn/tsconfig/tsconfig.node.json"
}

React Project

tsconfig.json:

{
    "extends": "@electronjs-cn/tsconfig/tsconfig.react.json"
}

Electron Project

tsconfig.json:

{
    "extends": "@electronjs-cn/tsconfig/tsconfig.electron.json"
}