What rule do you want to change?
no-empty-blocks
What change do you want to make?
Implement a fix xor suggestions
How do you think the change should be implemented?
A new default behavior
Example code
happy to send a PR for this. as far as i know:
- an empty block is safe to delete. For example
a {} ->
- for
@layers, it's safe to remove the curly braces. For example: @layer defaults {} -> @layer defaults
- other blocks like
@media name {} would have no autofix.
if the block contains comments, it would be a suggestion, otherwise it would be a fix.
What does the rule currently do for this code?
no autofix nor suggestions
What will the rule do after it's changed?
has autofix and suggestions
Participation
AI acknowledgment
Additional comments
-
What rule do you want to change?
no-empty-blocks
What change do you want to make?
Implement a
fixxorsuggestionsHow do you think the change should be implemented?
A new default behavior
Example code
happy to send a PR for this. as far as i know:
a {}->@layers, it's safe to remove the curly braces. For example:@layer defaults {}->@layer defaults@media name {}would have no autofix.if the block contains comments, it would be a
suggestion, otherwise it would be afix.What does the rule currently do for this code?
no autofix nor suggestions
What will the rule do after it's changed?
has autofix and suggestions
Participation
AI acknowledgment
(If the above is not checked) I have reviewed the AI-generated content before submitting.Additional comments
-