-
-
Notifications
You must be signed in to change notification settings - Fork 377
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃搸 Implement lint/noUselessLoneBlockStatements
- eslint/no-lone-block
#42
Comments
-
eslint/no-lone-block`lint/noUselessLoneBlockStatements
- eslint/no-lone-block
I think, in our case, the word "lone" can be dropped. I suggest |
Not sure, because the rule concerns only "lone" block statements, i.e. block statements that are not attached to a EDIT: The rule prohibits lone blocks that don't include any variables declaration. Example of incorrect code: {
f();
}
{} Example of correct ode: {
let x = 1;
}
// This is not a lone block
if (cond) {} |
Thank you for clarifying! I would still remove "statement" from the word :) it's not beginner friendly |
Hey there. I've been using Biome so would love to contribute. I'm fairly new to Rust, but willing to give this a go if you're ok with that? |
Go ahead @emab , feel free to use this issue to ask any question, or even a draft pr |
Great! Thank you. |
Hi @ematipico, please can I check if I'm on the right path? |
I wasn't sure how to check for strict mode in one of my functions... |
Please open a PR so that we can add comments :) |
Opened, link above! |
@Conaclos may I ask how I can have multiple valid / invalid test files? I want to include ones which are a module (by adding |
@emab simply add other files, for example For esm use |
Brilliant thank you, have updated the PR. |
Description
no-lone-blocks.
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.
The text was updated successfully, but these errors were encountered: