Skip to content
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

no-mocha-arrows drops comments in the function head when fixing #251

Closed
edg2s opened this issue May 26, 2020 · 1 comment · Fixed by #253
Closed

no-mocha-arrows drops comments in the function head when fixing #251

edg2s opened this issue May 26, 2020 · 1 comment · Fixed by #253
Labels

Comments

@edg2s
Copy link
Contributor

edg2s commented May 26, 2020

All of these comments are dropped when fixing:

it( ( foo /* one */ ) /* two */ => /* three */ { body(); } );

This was noticed while porting this rule to eslint-plugin-qunit: platinumazure/eslint-plugin-qunit#88

The fixes there can be easily backported to this plugin.

@lo1tuma lo1tuma added the bug label May 27, 2020
@lo1tuma
Copy link
Owner

lo1tuma commented May 27, 2020

Thanks for reporting. This looks like a bug.

edg2s added a commit to edg2s/eslint-plugin-mocha that referenced this issue May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants