Skip to content

Instantly share code, notes, and snippets.

@MoOx
Created September 22, 2016 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MoOx/83ca0368fa141b33018482ca1be279b9 to your computer and use it in GitHub Desktop.
Save MoOx/83ca0368fa141b33018482ca1be279b9 to your computer and use it in GitHub Desktop.
some flowconfig
[version]
0.30.0
[ignore]
.*/.git/.*
.*/node_modules/.*
.*/.nyc_output/.*
.*/__tests__/.*
.*/dist/.*
[libs]
flow/interfaces
[options]
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
esproposal.class_instance_fields=enable
esproposal.class_static_fields=enable
# extensions, should be keep in sync with webpack.config.js
# react-native(-web) extensions
module.file_ext=.web.js
# before adding .ios and .android, we will need to run flow with all extensions
# https://github.com/facebook/flow/issues/945#issuecomment-228340395
# module.file_ext=.ios.js
# module.file_ext=.android.js
# normal node extension
module.file_ext=.js
module.file_ext=.json
module.file_ext=
# babel-plugin-relative-import
module.name_mapper='^~/\(.*\)' -> '<PROJECT_ROOT>/src/\1'
# webpack loaders
module.name_mapper='.*\.\(svg\|png\|jpg\|gif\)$' -> '<PROJECT_ROOT>/flow/stub/url-loader.js'
// @flow
const s: string = ""
export default s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment