Created
September 22, 2016 13:39
-
-
Save MoOx/83ca0368fa141b33018482ca1be279b9 to your computer and use it in GitHub Desktop.
some flowconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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