Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Latest commit

 

History

History
22 lines (16 loc) · 1.43 KB

helpful-details.md

File metadata and controls

22 lines (16 loc) · 1.43 KB

Code Style, Type Checking and Linting:

code style: prettier linting: eslint type-check: flow

Type Checking

Using Flow Types for type-checks, instead of prop-types, as it is more robust. Well, there are few cons of it too. Some of them, which I felt exist was:

  • It has a bit of a learning curve...
  • Not well supported yet by Rollup, for extracting it out of your library.
    • rollup-pugin-flow, to extract out flow types from library, but there's some issue with this library, as it is not able to properly create source.maps for the build. Will figure it out someday, or someone else will.
    • rollup-plugin-flow-entry, Cudn't use this becoz of above issue.
  • Not many libraries out there have flow-types inbuilt like typescript. Well figured a workaround for it later, using flow-typed to create dummy type stubs for modules being used.
  • Not sure how to make it work with examples in this repo.

Code Style / Linting

  • ESLint
  • Prettier