Skip to content

winkler1/flow-eslint-react-demo

 
 

Repository files navigation

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 [email protected]: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.

About

Design by Contract with Flow, React, and ESLint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.9%
  • HTML 6.1%