Would it be possible to have a way to say that I want the rules to apply only to objects that has more than X properties?
E.g. I want to allow using things like this:
doThings({just: '123', twoProps: 'value'});
But disallow writing complex objects (more than 3 props or have nested objects, etc).
Would it be possible to have a way to say that I want the rules to apply only to objects that has more than X properties?
E.g. I want to allow using things like this:
But disallow writing complex objects (more than 3 props or have nested objects, etc).