Skip to content

Rule Proposal: vue/no-constant-condition #1358

New issue

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

Closed
Zzzen opened this issue Nov 23, 2020 · 0 comments · Fixed by #1401
Closed

Rule Proposal: vue/no-constant-condition #1358

Zzzen opened this issue Nov 23, 2020 · 0 comments · Fixed by #1401

Comments

@Zzzen
Copy link

Zzzen commented Nov 23, 2020

Please describe what the rule should do:
like no-constant-condition in eslint, but works with v-if/v-show.

What category should the rule belong to?

[ ] Enforces code style (layout)
[x] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

<div v-if="true"></div>
<div v-if="true || prop1"></div>

Additional context

@Zzzen Zzzen changed the title Rule Proposal: vue/no-constant-v-if Rule Proposal: vue/no-constant-condition Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants