// `isUpdating` is a ComputedRef
function onValidationChanged() {
config.value.steps.forEach((step, index) => {
if (index <= stepIndex.value || isUpdating) {
step.state = validations.value[index]?.$invalid ? 'invalid' : 'valid';
}
});
}
What did you expect to happen?vue/no-ref-as-operand to be trigered on isUpdating
What actually happened?
No error is found. It is found if the order is reversed, though. Below are IDE snapshots for clarity, but this happens when running eslint via CLI on the file too:
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
vue/no-ref-as-operand
to be trigered onisUpdating
What actually happened?
No error is found. It is found if the order is reversed, though. Below are IDE snapshots for clarity, but this happens when running eslint via CLI on the file too:
Repository to reproduce this issue
Can provide one if requested.