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

Docs: Change the generator-star-spacing options example (fixes #8027) #8034

Merged
merged 1 commit into from Feb 7, 2017

Conversation

hoatran1403
Copy link
Contributor

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

[ X ] Documentation update
[ ] 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:

#8027

What changes did you make? (Give an overview)
In file generator-star-spacing.md, Made changes in an example of Options from
"generator-star-spacing": ["error", {"before": false, "after": true}]
to
"generator-star-spacing": ["error", {"before": true, "after": false}]

Is there anything you'd like reviewers to focus on?
This is my first contribution to eslint, i'm not sure whether it matched with all the conventions or not( even though I've followed your pull request guide). Just let me know if there is any conflicts.
Thank you

@mention-bot
Copy link

@hoatran1403, thanks for your PR! By analyzing the history of the files in this pull request, we identified @btmills, @IanVS and @mysticatea to be potential reviewers.

@jsf-clabot
Copy link

jsf-clabot commented Feb 7, 2017

CLA assistant check
All committers have signed the CLA.

@eslintbot
Copy link

LGTM

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.

Thanks for contributing! Would you mind updating this with the suggestion in this comment, as well as signing the CLA?

@@ -59,7 +59,7 @@ The rule takes one option, an object, which has two keys `before` and `after` ha
The default is `{"before": true, "after": false}`.

```json
"generator-star-spacing": ["error", {"before": false, "after": true}]
"generator-star-spacing": ["error", {"before": true, "after": false}]
Copy link
Member

@kaicataldo kaicataldo Feb 7, 2017

Choose a reason for hiding this comment

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

It looks like this was intended to be a general example of how to configure the rule rather than showing another example of the default configuration. Perhaps something along the lines of:

An example configuration:
"generator-star-spacing": ["error", {"before": true, "after": false}]

We'll probably want a comment before the shorthand configuration on line 72 as well.

@eslintbot
Copy link

LGTM

@hoatran1403
Copy link
Contributor Author

@kaicataldo Thanks for your review, I just fixed it.

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 for contributing to ESLint!

Copy link
Member

@btmills btmills 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 c596690 into eslint:master Feb 7, 2017
@hoatran1403 hoatran1403 deleted the issue8027 branch February 7, 2017 22:00
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@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 Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants