Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 782 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 782 Bytes

What's this?

A demo of the power of React PropTypes with Flow's static analysis. Blog post/Video.

Documented Props

Props must be documented.

Missing props

Enforced via Static Analysis

Flow understands and propagates constraints to call sites.

Flow constraints

How to use

  • git clone git@github.com:winkler1/flow-eslint-react-demo.git && cd flow-eslint-react-demo && git checkout react-13 && npm install
  • npm run lint to confirm eslint working.
  • Watch your code: ./node_modules/.bin/onchange "**/*.js" .babelrc .eslintrc .flowconfig -- ./run_checks.sh
  • Make changes in src/App.js. As you change, ESLint and Flow should run checks and give feedback.