@monorepo-template/react-module-tsconfig

1.0.8 • Public • Published

React module TypeScript configuration

The @monorepo-template/react-module-tsconfig package contains production-ready TypeScript configurations for React modules. It extends the monorepo template TypeScript configuration by adding React-specific compiler options, such as JSX support, type declarations, and more.

Install

yarn add --dev "@monorepo-template/react-module-tsconfig" "@types/jest"

Use

Change your tsconfig.json file to extend this preconfiguration:

{
  "extends": "@monorepo-template/react-module-tsconfig"
}

If you do not want your module to use the React 17 JSX transform, extend this preconfiguration instead:

{
  "extends": "@monorepo-template/react-module-tsconfig/no-jsx-runtime"
}

Change your tsconfig.development.json file to extend this preconfiguration:

{
  "extends": "@monorepo-template/react-module-tsconfig/development"
}

Change your tsconfig.eslint.json file to extend this preconfiguration:

{
  "extends": "@monorepo-template/react-module-tsconfig/eslint"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @monorepo-template/react-module-tsconfig

Weekly Downloads

14

Version

1.0.8

License

MIT

Unpacked Size

3.36 kB

Total Files

6

Last publish

Collaborators

  • charlesstover