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

Fix: ignore marker-only comments in spaced-comment (fixes #12036) #12558

Merged
merged 1 commit into from Nov 15, 2019

Conversation

mdjermanovic
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[X] Bug fix #12036

What changes did you make? (Give an overview)

If the whole comment is equal to any of the specified markers, that comment will be ignored by this rule.

This applies to both line comments and block comments.

Is there anything you'd like reviewers to focus on?

This indirectly allows /***/ and //* ("*" is always a marker).

@mdjermanovic mdjermanovic added bug ESLint is working incorrectly rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion labels Nov 12, 2019
Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I have no concerns with the * markers at this point, but let's see what other team members think.

@ilyavolodin
Copy link
Member

I think this is reasonable.

Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@kaicataldo kaicataldo merged commit 1110045 into master Nov 15, 2019
@kaicataldo kaicataldo deleted the issue12036 branch November 15, 2019 01:01
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators May 15, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spaced-comment should allow line ending after markers
4 participants