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
Please describe what the rule should do:
If a Box has no props on it and only has one child, suggest to remove the Box all together.
For example:
<Box> <Button label="Hello" /> </Box>
This falls into best practices for clean code/removing unnecessary divs from DOM.
What category of rule is this? (place an "X" next to just one item)
[ ] Warns about a potential error (problem) [x] Suggests an alternate way of doing something (suggestion) [ ] Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
Why should this rule be included in eslint-plugin-grommet?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please describe what the rule should do:
If a Box has no props on it and only has one child, suggest to remove the Box all together.
For example:
This falls into best practices for clean code/removing unnecessary divs from DOM.
What category of rule is this? (place an "X" next to just one item)
[ ] Warns about a potential error (problem)
[x] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
Why should this rule be included in eslint-plugin-grommet?
The text was updated successfully, but these errors were encountered: