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
<div>s without attributes and containing only a single child are usually useless and can be eliminated.
<div>
The text was updated successfully, but these errors were encountered:
Imho you sometimes use div containers for styling purposes, e.g. when working with flexbox.
div
<div style={{ display: "flexbox", justifyContent: "space-between", height: "200px" }}> <div>foo</div> <div>bar</div> </div>
How would you prevent using <div> in this example and what are other common use cases of useless <div>s?
Sorry, something went wrong.
@cheeZery this is certainly true, but IME pretty rare, and I’m happy to provide lint-disabling pragmas for the few cases where I need this.
Closing due to deprecation timeline, see #210
No branches or pull requests
<div>
s without attributes and containing only a single child are usually useless and can be eliminated.The text was updated successfully, but these errors were encountered: