Skip to content

Instantly share code, notes, and snippets.

@torifat
Created August 4, 2016 01:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torifat/756443d1bab62abda5f87c3ca2c90dc8 to your computer and use it in GitHub Desktop.
Save torifat/756443d1bab62abda5f87c3ca2c90dc8 to your computer and use it in GitHub Desktop.
Default .flowconfig for create-react-app
[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\|svg\|ttf\|woff\|woff2\|mp4\|webm\)$' -> 'react-scripts/config/flow/file'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
@langpavel
Copy link

Really old, but I found this today, two years ago, when I looking for flowconfig create-react-app on Google.
And I don't know if simply empty .flowconfig file is good enough config today.
I'm not sure if scanning entire node_modules is good way.
It looks that it takes time only at first run, so it should be fine to use empty `.flowconfig:

[ignore]

[include]
<PROJECT_ROOT>/src/
<PROJECT_ROOT>/server/

[libs]

[lints]

[options]
emoji=true

[strict]

@nataly-chobat
Copy link

nataly-chobat commented Oct 17, 2018

And what folders should be under ignore? Could you please help with this @langpavel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment