realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

Play nicely with flow/eslint?

Open kushal opened this issue 9 years ago • 3 comments

By default, tools don't understand that the properties of realm objects are properties. There are ways to work around this, but I wonder if you have any ideas about how to do this automatically?

kushal avatar May 20 '16 19:05 kushal

@kushal I'd like to better understand the issues you're seeing with ESLint. I do understand the issues you're probably seeing with using Flow. I don't have any great ideas on automatically annotating Realm objects, though I believe you can do that manually. We may be able to provide interface info for our APIs. I'm not super familiar with Flow yet.

appden avatar May 20 '16 22:05 appden

Is this just a problem with flow? What is the issue with eslint?

alazier avatar May 31 '16 15:05 alazier

Great question. I thought I saw a eslint error related to a unknown property, but I might be losing my mind. :) Lets's just focus on Flow for now.

TBH, I'm considering programmatically generating model files and then type definitions could just be part of that....

kushal avatar Jun 01 '16 19:06 kushal