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
Disallow lines-between-class-members deletes comments and docblocks between methods #12391
Disallow lines-between-class-members deletes comments and docblocks between methods #12391
Comments
Hi @tomm1996, thanks for the report! Confirmed in the Online Demo. This should be definitely fixed, just to see how. There is lines-around-comment rule, so the solution might be to ignore class members if there is a comment between them, to avoid clashing. I'll try to check how some similar rules work in these situations. |
After thinking a bit about this, I agree with this comment by @kaicataldo that all these rules should be one single rule. Was checking how |
maybe. #12632 can fix it. |
Tell us about your environment
Windows 10/git bash
6.5.1
v11.9.0
6.9.0
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint 9.0.0
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?
Remove line 4 in MyClass.js
What actually happened? Please include the actual, raw output from ESLint.
Removed lines 4-7 in MyClass.js
Are you willing to submit a pull request to fix this bug?
I suppose I'm not familiar enough with the code base to be of any help by now. I'd be willing to invest some time though.
The text was updated successfully, but these errors were encountered: