-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 comment indentation: Comments can align with previous/next lines of code even if whitespace in between #9733
Comments
@not-an-aardvark: Is this a bug, or working as designed? Thanks! |
I think this is technically working as designed, but I agree with your analysis that the design could be improved here by making it more strict. I'm fine with calling it a bug. |
I'll work on this later this week. |
@platinumazure was wondering if you were still looking into this one? Wouldnt mind taking a crack at it. If youre still looking into it though no worries. |
Thanks for following up! I haven't had a chance to look into this; please
take a look if you are interested.
…On Sat, May 19, 2018, 19:54 Scott Stern ***@***.***> wrote:
@platinumazure <https://github.com/platinumazure> was wondering if you
were still looking into this one? Wouldnt mind taking a crack at it. If
youre still looking into it though no worries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9733 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARWeqdcb4Mjl-a4FXHHkF7sOK8VCYDZks5t0L63gaJpZM4RGB2->
.
|
Working on this. |
Also needed to ensure that comments between element lists have desired offsets set if first element is on same line as beginning of element list
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Default parser
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
3:1 - Expected indentation of 4 spaces but found 0. (indent)
What actually happened? Please include the actual, raw output from ESLint.
No lint error.
The bug (as I see it) is that the indent rule has a tolerance for comments to match the indentation of the previous line, that of the next line, or the "actual correct location". However, I think this should only apply if there actually is code on the immediately previous or next lines, rather than code that is separated by one or more lines of whitespace.
The text was updated successfully, but these errors were encountered: