Skip to content

Instantly share code, notes, and snippets.

@Lazhari
Forked from jacobkahn/.flowconfig
Created June 25, 2017 03:41
Show Gist options
  • Save Lazhari/93f3d3bc9128fd1da9f8477257b35b55 to your computer and use it in GitHub Desktop.
Save Lazhari/93f3d3bc9128fd1da9f8477257b35b55 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