brigand / react-style-proptype

Validates style objects by ensuring the keys are valid css property names (in camelcase form).
MIT License
58 stars 11 forks source link

Flow erroring on flow-not-ok.js test in NPM package #13

Closed thabemmz closed 6 years ago

thabemmz commented 6 years ago

In my project, Flow throws an error because it cannot validate the flow-not-ok.js test file. I looked into this and it turns out that the v3.2.0 version does include the test folder, while the v3.1.0 did not.

The quick fix in my project is to flow ignore react-style-proptype. The proper solution, IMO, is to remove the test folder from the NPM package altogether and prevent it from being published ever again.

I created a PR to prevent that: https://github.com/brigand/react-style-proptype/pull/12

Let me know what you think!