Instantly share code, notes, and snippets.

Embed
What would you like to do?
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