-
-
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
padding-line-between-statements sometimes fails for functions #10487
Comments
Hi, thanks for reporting an issue. Could you clarify which newline ESLint asked you to remove? It's a bit hard to tell with the information you've given since there are several blank lines in your code sample. It would also be much appreciated if you could reduce your example to the smallest config/code combination that demonstrates the problem -- that would make it much easier to pinpoint what the bug is. |
I've edited the eslint rules to remove all the other rules and to put a comment on the line eslint wants me to remove. I'm a little busy with some other things and don't have time to experiment with the smallest possible options for that rule. |
is there any progress being made on this? |
Could really use this being fixed, it's annoying for us to have to add a rule flag disabling this rule in our tests just for them to pass, even when we use it otherwise. |
Hi @LJNeon -- no, there hasn't been any progress made on this so far. In general, any progress will appear on the issue. I think the bug here is that the rule doesn't apply the This will hopefully be fixed soon. Alternatively we'd be happy to review a PR if you're interested in fixing it. |
Working on this. |
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
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.
node_modules/.bin/eslint . --ext .js
What did you expect to happen?
since I explicitly stated that there should always be a new line after functions, and there's no later rule that would override it when an expression is below, it would work with the newline between the function and the expression.
What actually happened? Please include the actual, raw output from ESLint.
It asked me to remove that newline. This same problem happens in two other locations in my code.
The text was updated successfully, but these errors were encountered: