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

Cleanup markdown sample code #317

Merged
merged 4 commits into from
Feb 15, 2018
Merged

Cleanup markdown sample code #317

merged 4 commits into from
Feb 15, 2018

Conversation

christopherjbaker
Copy link
Contributor

This pull request was created with Landscaper.
The following code mods were used to create this PR:

  1. https://gist.github.com/christopherjbaker/49b7e985b37032902d68a17dd2daa070

Please review this PR carefully as Landscaper does not guarantee any code mod's quality.

@christopherjbaker christopherjbaker changed the base branch from md-code-fixes to master February 14, 2018 01:09
@christopherjbaker christopherjbaker changed the title Use const/let in sample code Cleanup markdown sample code Feb 14, 2018
@@ -9,8 +9,10 @@ value.
A constructor function can be provided that is called to convert incoming values set on this property, like:

```js
prop: {
Type: Person
{
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer these examples without the surrounding {} because it shows there might be other properties. But this isn't important.

Copy link
Contributor Author

@christopherjbaker christopherjbaker Feb 14, 2018

Choose a reason for hiding this comment

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

It was necessary for the parsers that were updating for let/const and for the linter. There were quite a few like this, over several repositories.

Copy link
Contributor

@justinbmeyer justinbmeyer left a comment

Choose a reason for hiding this comment

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

I find the wrapping {} a bit much. Is this necessary?

@christopherjbaker
Copy link
Contributor Author

I could certainly go through and remove them, though anybody running similar mods in the future will run into this problem again.

@christopherjbaker christopherjbaker merged commit 286f177 into master Feb 15, 2018
@christopherjbaker christopherjbaker deleted the landscaper/3846-es6 branch February 15, 2018 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants