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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indent Rule - Possible to add LogicalExpression for multi-line conditions? #8978
Comments
Thanks for the proposal, but I'm confused. Isn't your example already valid with the Also, I think the term you're looking for is |
Ah, forgive me. I'm still an AST node newbie.
I've renamed the issue. Edit: I've just noticed a comment in the section for LogicalExpression, here, so that might be a blocker...
|
Just noticed your mention about the template. I've updated the issue. Thanks! (And sorry for not noticing it was available!) I've changed everything to say LogicalExpression, as I believe that is the one I'm after, as per the estree node spec. |
Sorry about the delayed response here. This is something I've been working on separately from this issue -- I think it's a good idea, but we will need to make sure we can handle all of the cases in a reasonable way. |
No worries! I look forward to any news 👍🏻 |
Unfortunately, it looks like there wasn't enough interest from the team or community to implement this change. While we wish we'd be able to accommodate everyone's requests, we do need to prioritize. We've found that issues failing to be implemented after 90 days tend to never be implemented, and as such, we close those issues. This doesn't mean the idea isn't interesting or useful, just that it's not something the team can commit to. |
What rule do you want to change?
Add
LogicalExpression
as a configuration option to the Indent rule.I believe the default should be "off", as per this comment.
Does this change cause the rule to produce more or fewer warnings?
Code and setting dependent. I think the addition would not have an affect to default behaviour, unless explicitly set in eslintrc.json.
How will the change be implemented? (New option, new default behavior, etc.)?
New
LogicalExpression
option for the Indent rule configurationPlease provide some example code that this change will affect:
Default
What does the rule currently do for this code?
It does not check these expressions, and adding
LogicalExpression
to the rule config object raises errors about additional properties.What will the rule do after it's changed?
Check additional AST nodes for indentation.
Edit: Filled out the rule change template - Thanks for linking that; apologies for not seeing it.
The text was updated successfully, but these errors were encountered: