Skip to content

Instantly share code, notes, and snippets.

@ArmandDu
Last active March 23, 2018 12:14
Show Gist options
  • Save ArmandDu/9fdc07256eb2d2f8e382ddbf90924f37 to your computer and use it in GitHub Desktop.
Save ArmandDu/9fdc07256eb2d2f8e382ddbf90924f37 to your computer and use it in GitHub Desktop.
A .flowconfig file for meteor projects . tested with Meteor 1.6.1
;Flow config for meteor projects.
;
;example usage:
;
;$ meteor create my-app
;$ cd my-app
;$ meteor npm install --save-dev flow-bin
;$ < add this file to project as .flowconfig >
;$ meteor
;$ [in your IDE or another console] ./node_modules/.bin/flow check
;NB: make sure the app there is a build (in .meteor/local/build) before running flow check!
; Thanks to this article: http://blog.jamiter.com/2016/05/23/meteor-and-flow-static-type-checker/
[ignore]
.*/.meteor/local/build/programs/server/app/.*
.*/.meteor/local/build/programs/server/assets/.*
.*/.meteor/local/build/programs/server/npm/.*
.*/.meteor/local/build/programs/server/node_modules/.*
.*/.meteor/local/build/programs/web.browser/app/.*
.*/.meteor/local/build/main.js
.*/.meteor/packages/.*
.*/node_modules/fbjs/.*
[include]
[libs]
[lints]
[options]
module.name_mapper='^\/\(.*\)$' -> '<PROJECT_ROOT>/\1'
module.name_mapper='^meteor\/\(.*\):\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/server/packages/\1_\2'
module.name_mapper='^meteor\/\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/server/packages/\1'
module.name_mapper='^meteor\/\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/web.browser/packages/\1'
[strict]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment