From 7fd9891ce16b9d092bf71d4470f3595f2916a005 Mon Sep 17 00:00:00 2001 From: Richy HBM Date: Thu, 27 Oct 2016 13:12:45 +0100 Subject: [PATCH 1/2] Allow checking all qualifying files Add option to check a file even if it doesn't contain // @flow --- lib/utils.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.coffee b/lib/utils.coffee index 713acec..91c25ac 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -5,6 +5,8 @@ isFlowSource = (editor) -> fname = buffer.getUri() isFlow = false if path.extname(fname) in ['.js', '.jsx'] + if atom.config.get('ide-flow.checkAllFiles') + isFlow = true if buffer.lineForRow(buffer.nextNonBlankRow -1)?.match(/\/\*/) buffer.scan /\/\*(.|\n)*?\*\//, (scan) => isFlow = true if scan.matchText.match(/@flow/) From c993503eacca7aa81676b500bc742f53554e739c Mon Sep 17 00:00:00 2001 From: Richy HBM Date: Thu, 27 Oct 2016 13:13:49 +0100 Subject: [PATCH 2/2] Add ability to set check all files in config menu --- lib/ide-flow.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ide-flow.coffee b/lib/ide-flow.coffee index d3f927d..f8fd54b 100644 --- a/lib/ide-flow.coffee +++ b/lib/ide-flow.coffee @@ -22,6 +22,9 @@ module.exports = require './flow-autocomplete-provider' config: + checkAllFiles: + type: 'boolean' + default: false checkOnFileSave: type: 'boolean' default: true