You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
changed the title [-]📎 Implement `lint/noEmptyBlockStatements`[/-][+]📎 Implement `lint/noEmptyBlockStatements` - `eslint/no-empty` `eslint/no-empty-static-block`[/+]on Aug 23, 2023
So we would have two rules that trigger the same code? That doesn't seem right to me.
I wonder if at this point if we should have only one rule that handles all the block statements. Or at least make sure that they don't conflict each other.
Activity
[-]📎 lint/noEmptyBlockStatements[/-][+]📎 `lint/noEmptyBlockStatements`[/+][-]📎 `lint/noEmptyBlockStatements`[/-][+]📎 Implement `lint/noEmptyBlockStatements`[/+][-]📎 Implement `lint/noEmptyBlockStatements`[/-][+]📎 Implement `lint/noEmptyBlockStatements` - `eslint/no-empty` `eslint/no-empty-static-block`[/+]ematipico commentedon Aug 28, 2023
What's the difference between this rule and #42? It's worth an explanation in the description
Conaclos commentedon Aug 28, 2023
In contrast to #42, the rule prohibits any empty block statements.
Examples of incorrect code:
However, the following example also triggers #42:
ematipico commentedon Aug 28, 2023
So we would have two rules that trigger the same code? That doesn't seem right to me.
I wonder if at this point if we should have only one rule that handles all the block statements. Or at least make sure that they don't conflict each other.
Conaclos commentedon Aug 28, 2023
I think you are right. We could thus regroup these two rule under the
noUselessBlockStatementsname.andrewangelle commentedon Oct 8, 2023
Hello! If a fix for this issue is still needed, I'd like to give it a shot.