Base TypeScript configurations.
The following is the of available configuration types:
@straw-hat/tsconfig/lib/base
: for the baseline for your projects.@straw-hat/tsconfig/lib/react.nextjs
: for React NextJS applications.@straw-hat/tsconfig/lib/react.cra
: for React CRA-like web applications.@straw-hat/tsconfig/lib/react.lib
: for React libraries.@straw-hat/tsconfig/lib/cypress
: for Cypress tests.@straw-hat/tsconfig/lib/browser.lib
: for libraries that are intended to be used in the browser.
-
Install the dependency in your package:
yarn add -D @straw-hat/tsconfig
-
Extend your
tsconfig.json
files.{ "extends": "@straw-hat/tsconfig/lib/{type}" }