Bailing out when we encounter a spread operator is a choice. It reduces friction of implementation.
But it also hides errors. With an option to not bail on JSXSpreadOperator, we force explicit prop definitions on composed components.
Make this option false by default to maintain current behavior.
Perhaps this should be a config-level setting, rather than a rule-specific option?
Alternatively, perhaps a specific rule that bans spread props with non-inline-object-literals?
Perhaps this should be a config-level setting, rather than a rule-specific option?
@ljharb Oh, I like this. Thanks for the suggestion.
Most helpful comment
@ljharb Oh, I like this. Thanks for the suggestion.