amilajack / amilajack/eslint-plugin-flowtype-errors

Issue setting up monorepo

Aperta
#124 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
402
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm using flowtype-errors in a monorepo setup, with this folder structure:

- MyProject
- moduleA
- .eslintrc
- .flowconfig
- moduleB
- .eslintrc
- .flowconfig
- etc..

It's working great from the command line and everything else in ESLint works great in Atom as well. But for some reason flowtype-errors gets confused regarding where the flow setup is.

Without configuration I get this error:
`Flow returned an error: Could not find a .flowconfig in /Users/robert/Code/MyProject or any of its parent directories. See "flow init --help" for more info (code: 12) (flowtype-errors/show-errors)`
Which indicates that it's looking for a .flowconfig in the root of the monorepo.

If I add this configuration to my .eslintrc settings:
`'flowtype-errors': {
'flowDir': './moduleA'
},`
I get this error instead, which still feels like it's confused about the directory structure:
`Invalid position given by 'flowtype-errors/show-errors'. See the description for details. Click the URL to open a new issue!`

I'm not sure whether it's caused by this plugin or the Atom linter. Any ideas? :)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.