Skip to content
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

Add rule to ensure known boolean attributes are bound using boolean binding #92

Open
stramel opened this issue May 10, 2021 · 1 comment

Comments

@stramel
Copy link
Contributor

stramel commented May 10, 2021

Add a rule to check that known boolean attributes are bound using the "boolean attribute binding", ?.

Attributes like hidden, disabled, checked etc. if bound to a variable should be using the ? binding syntax.

@stramel
Copy link
Contributor Author

stramel commented May 17, 2021

In the case of ?hidden=${true} or ?hidden=${false} might be worth a rule similar to no-useless-template-literals where the binding would never change and be equivalent to hidden or no attribute respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant