@@ -7,14 +7,15 @@ Base TypeScript configurations.
77
88## References
99
10- The following is the of available configuration types:
10+ The following is the list of available configuration types:
1111
12- - ` @straw-hat/tsconfig/lib/base ` : for the baseline for your projects.
13- - ` @straw-hat/tsconfig/lib/react.nextjs ` : for React NextJS applications.
14- - ` @straw-hat/tsconfig/lib/react.cra ` : for React CRA-like web applications.
15- - ` @straw-hat/tsconfig/lib/react.lib ` : for React libraries.
16- - ` @straw-hat/tsconfig/lib/cypress ` : for Cypress tests.
17- - ` @straw-hat/tsconfig/lib/browser.lib ` : for libraries that are intended to be used in the browser.
12+ - ` @straw-hat/tsconfig/lib/base ` : Modern baseline for your projects (skipLibCheck, target es2022, strict, etc).
13+ - ` @straw-hat/tsconfig/lib/lib ` : For Node.js libraries (declaration, composite, NodeNext, etc).
14+ - ` @straw-hat/tsconfig/lib/browser.lib ` : For browser libraries (adds DOM libs).
15+ - ` @straw-hat/tsconfig/lib/react.lib ` : For React libraries (adds JSX and DOM libs).
16+ - ` @straw-hat/tsconfig/lib/react.nextjs ` : For React Next.js applications (Preserve modules, noEmit, DOM libs).
17+ - ` @straw-hat/tsconfig/lib/react.cra ` : For React CRA-like web applications (Preserve modules, noEmit, DOM libs).
18+ - ` @straw-hat/tsconfig/lib/cypress ` : For Cypress tests (CommonJS, DOM libs).
1819
1920## How-To Guides
2021
@@ -33,3 +34,9 @@ The following is the of available configuration types:
3334 "extends" : " @straw-hat/tsconfig/lib/{type}"
3435 }
3536 ```
37+
38+ - For libraries in a monorepo, use ` lib ` or ` react.lib ` and set ` composite: true ` and ` declarationMap: true ` .
39+ - For browser/React projects, use ` browser.lib ` , ` react.lib ` , ` react.nextjs ` , or ` react.cra ` as appropriate.
40+ - For Cypress, use ` cypress ` .
41+
42+ See each config file for the exact options included.
0 commit comments