Skip to content

Instantly share code, notes, and snippets.

@jacobkahn
Created August 24, 2016 04:30
Show Gist options
  • Save jacobkahn/a82562135f1126509bcd7e97a46ad296 to your computer and use it in GitHub Desktop.
Save jacobkahn/a82562135f1126509bcd7e97a46ad296 to your computer and use it in GitHub Desktop.
Flow Config that works with Create React App and Nuclide
[libs]
./node_modules/fbjs/flow/lib
[options]
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
module.name_mapper='^\(.*\)\.css$' -> 'react-scripts/config/flow/css'
module.name_mapper='^\(.*\)\.\(jpg\|png\|gif\|eot\|otf\|webp\|svg\|ttf\|woff\|woff2\|mp4\|webm\)$' -> 'react-scripts/config/flow/file'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment