{"action":"opened","issue":{"url":"https://api.github.com/repos/charliedowler/gulp-flowtype/issues/46","repository_url":"https://api.github.com/repos/charliedowler/gulp-flowtype","labels_url":"https://api.github.com/repos/charliedowler/gulp-flowtype/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/charliedowler/gulp-flowtype/issues/46/comments","events_url":"https://api.github.com/repos/charliedowler/gulp-flowtype/issues/46/events","html_url":"https://github.com/charliedowler/gulp-flowtype/issues/46","id":178445070,"number":46,"title":"all=true .flowconfig option is ignored","user":{"login":"szarouski","id":911388,"avatar_url":"https://avatars.githubusercontent.com/u/911388?v=3","gravatar_id":"","url":"https://api.github.com/users/szarouski","html_url":"https://github.com/szarouski","followers_url":"https://api.github.com/users/szarouski/followers","following_url":"https://api.github.com/users/szarouski/following{/other_user}","gists_url":"https://api.github.com/users/szarouski/gists{/gist_id}","starred_url":"https://api.github.com/users/szarouski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szarouski/subscriptions","organizations_url":"https://api.github.com/users/szarouski/orgs","repos_url":"https://api.github.com/users/szarouski/repos","events_url":"https://api.github.com/users/szarouski/events{/privacy}","received_events_url":"https://api.github.com/users/szarouski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-21T19:47:10Z","updated_at":"2016-09-21T19:47:10Z","closed_at":null,"body":"Hi, all=true option from .flowconfig is ignored\r\n\r\n```js\r\n//gulpfile.js\r\nconst gulp = require('gulp');\r\nconst flow = require('gulp-flowtype');\r\nconst babel = require('gulp-babel');\r\nconst sourcemaps = require('gulp-sourcemaps');\r\nconst debug = require('gulp-debug');\r\n\r\nconst src = 'src/**/*.js';\r\nconst typecheck = (src) => gulp.src(src).pipe(flow());\r\n\r\ngulp.task('typecheck', () => typecheck(src));\r\ngulp.task('type-monitor', () => {gulp.watch(src, ({path}) => typecheck(path))});\r\n\r\nconst compile = (src) =>\r\ngulp.src(src)\r\n    .pipe(sourcemaps.init())\r\n    .pipe(babel({\r\n        plugins: ['transform-flow-strip-types']\r\n    }))\r\n    .pipe(debug({title: 'babel:'}))\r\n    .pipe(sourcemaps.write('.'))\r\n    .pipe(gulp.dest('dist'));\r\n\r\ngulp.task('compile', () => compile(src));\r\ngulp.task('compile-monitor', () => {gulp.watch(src, ({path}) => compile(path))});\r\ngulp.task('monitors', () => {gulp.start(['type-monitor', 'compile-monitor']);});\r\ngulp.task('build', () => {gulp.start(['typecheck', 'compile']);});\r\ngulp.task('watch', () => {gulp.start(['build', 'monitors']);});\r\n```\r\n\r\n```\r\n//.flowconfig\r\n[ignore]\r\n<PROJECT_ROOT>/node_modules\r\n\r\n[include]\r\n./src\r\n\r\n[libs]\r\n./flow-typed\r\n\r\n[options]\r\nall=true\r\n```\r\n\r\n```js\r\n//index.js\r\nconst debug = require('debug');\r\nconst log = debug();\r\nconst error = debug(1);\r\n\r\nlog('hey!');\r\nerror('oh!');\r\n```\r\n\r\nindex.js doesn't have `/* @flow */` because I expect `all=true` option to take care of the issue. For now I can set all using options, but I think it would be better to delegate that to .flowconfig, when possible.\r\n\r\nIf I run gulp, I don't get any errors in console, it says `Flow has found 0 errors`. If I run flow directly, I get errors. Thank you."}}
{"actor":{"display_login":"szarouski"}}