Closed
Description
Please describe what the rule should do:
In template, if there's an attribute whose value is true
, such as :show="true"
, this rule will warn and provide auto fix (becomes show
, see the example below). This can reduce verbosity.
What category should the rule belong to?
[x] Suggests an alternate way of doing something (suggestion)
Provide 2-3 code examples that this rule should warn about:
Invalid:
<template>
<my-dialog :show="true" />
</template>
which can be fixed to:
<template>
<my-dialog show />
</template>