-
-
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
Update: Fix incorrect default value for position #10670
Conversation
What is invalid about the commit message? |
I think the problem is that it's too long -- the first line needs to be at most 72 characters. |
|
Done 😃 |
The current workaround is to explicitly set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this is a bugfix, I think the commit needs to start with "Update:" because this can increase warnings for some configurations.
LGTM otherwise, thanks for contributing!
@platinumazure, Done 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Merged, thanks for contributing! |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[x] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
Not throw an error.
What actually happened? Please include the actual, raw output from ESLint.
What changes did you make? (Give an overview)
I ensured that the current documentation is correct regarding the
line-comment-position
rule. It states that theabove
position
is the default value, but specifying theignorePattern
(orapplyDefaultIgnorePatterns
for that matter) caused theposition
to default tobeside
instead. The change is merely copied and adapted from 3 lines above it.Is there anything you'd like reviewers to focus on?