Skip to content

Commit 0db45fc

Browse files
author
devgioele
committed
explain usage of react tsconfig
1 parent 82b8317 commit 0db45fc

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,26 @@ Install the package, assuming that you have TypeScript already installed:
1313
npm i -D @aboutbits/ts-config
1414
```
1515

16-
Edit your `tsconfig.json`:
16+
### For TypeScript without React
17+
18+
`tsconfig.json`
1719

1820
```json
1921
{
2022
"extends": "@aboutbits/ts-config"
2123
}
2224
```
2325

26+
### For TypeScript with React
27+
28+
`tsconfig.json`
29+
30+
```json
31+
{
32+
"extends": "@aboutbits/ts-config/react"
33+
}
34+
```
35+
2436
## Publish
2537

2638
To publish the package commit all changes and push them to main. Then run one of the following commands locally:

0 commit comments

Comments
 (0)