We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue/no-ref-as-operand
computed
Checklist
Tell us about your environment
What did you do?
const count = ref(0) const ok = ref(true) const notok = computed(() => !ok.value) if (notok || !ok) { console.log("not ok!!") }
What did you expect to happen?
notok should be flagged as a problem in the condition above.
notok
What actually happened?
Only !ok is flagged.
!ok
It's happening in my local env but I am able to reproduce in the web docs:
Repository to reproduce this issue
can provide more info on my local configs if needed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Tell us about your environment
What did you do?
What did you expect to happen?
notok
should be flagged as a problem in the condition above.What actually happened?
Only
!ok
is flagged.It's happening in my local env but I am able to reproduce in the web docs:
Repository to reproduce this issue
can provide more info on my local configs if needed.
The text was updated successfully, but these errors were encountered: