TS dev tools for React
npm install @ts-dev-tools/react
     
---
- Enable browser env for eslint
- Install and configure eslint-plugin-react
- Install react tests libraries:
- @testing-library/jest-dom: Custom jest matchers to test the state of the DOM
- @testing-library/react: Simple and complete React DOM testing utilities
- @testing-library/react-hooks: Simple and complete React hooks testing utilities
- react-test-renderer: React renderer required by @testing-library/react-hooks
- @types/react
- @types/react-dom
---
``sh`
npm install --save-dev @ts-dev-tools/react
Or
`sh`
yarn add --dev @ts-dev-tools/react
`sh`
npm exec ts-dev-tools install
Or
`sh``
yarn ts-dev-tools install
โ ๏ธ If your package is using yarn, is not private and you're publishing it on a registry like npmjs.com, you need to disable postinstall script using pinst. Otherwise, postinstall will run when someone installs your package and result in an error.