Closed
Description
Please describe what the rule should do:
This rule requires prop
and event
properties in model
property.
What category should the rule belong to?
- Enforces code style
- Warns about a potential error
- Suggests an alternate way of doing something
- Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
<script>
export default {
model: {
prop: 'someValue',
// Needs 'event' property.
},
};
</script>
<script>
export default {
model: {
props: 'someValue', // Needs 'prop' property.
event: 'some-event',
},
};
</script>
Additional context
- If settings is missing, v-model uses
value
as the prop andinput
as the event. But both settings should be required when usemodel
property. - Miss-typing with property name is easy to occur and founding the mistake is much harder.
Metadata
Metadata
Assignees
Labels
No labels