linter-flow icon indicating copy to clipboard operation
linter-flow copied to clipboard

Configurable path to .flowconfig

Open rjdestigter opened this issue 8 years ago • 1 comments

It would be nice to be able to point where .flowconfig lives. I've got a project where both react-native and web share a lot of code but not the same .flowconfig

For example, in my package.json I have a script defenition "flow:native": "yarn run flow ./native" to execute flow specifically for the react-native project pointing flow to the directory where .flowconfig lives.

rjdestigter avatar Jun 23 '17 15:06 rjdestigter

I've currently solved the problem by pointing linter-flow to a bash script that redirects the request:

#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$DIR/../node_modules/.bin/flow $1 $DIR/../dom/ $2

Where in my case .flowconfig lives in $DIR/../dom/

rjdestigter avatar Jul 06 '17 14:07 rjdestigter