Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Configurable path to .flowconfig #169

Open
rjdestigter opened this issue Jun 23, 2017 · 1 comment
Open

Configurable path to .flowconfig #169

rjdestigter opened this issue Jun 23, 2017 · 1 comment

Comments

@rjdestigter
Copy link

rjdestigter commented Jun 23, 2017

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 rjdestigter changed the title Configurable path to .flowconfig Configurable path to .flowconfig Jun 23, 2017
@rjdestigter
Copy link
Author

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/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant