garyx
garyx

Reputation: 619

Ignore node_modules but not some in flowtype

I want to ignore the whole node_modules in my .flowconfig [ignore] section for performance sake, but include some directory I used, like 'react'.

Any one how to do that?

I basically want to ignore all the dev dependency node_modules that affect the flow check cli.

Thanks

Upvotes: 3

Views: 789

Answers (1)

garyx
garyx

Reputation: 619

so I still couldn't figure out how to do it.

But instead, I ignore the whole node_modules dir, and use flow-typed to generate some type definition for me. Therefore flowbin will not look into node_modules (and save time), it just look at the definitions flow-typed generated.

ps: Many libs are not found in flow-typed, so they generate any type. Thats fine for me, what I really focus to type is my own code.

Upvotes: 1

Related Questions