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

Use const/let in all blueprints #6889

Merged
merged 2 commits into from Mar 24, 2017

Conversation

simonihmig
Copy link
Contributor

This will remove all left over usage of var off the blueprints.

When to use const vs. let is a matter of opinions obviously. After checking with @Turbo87 on Slack, I was assuming the ember-suave-like rules of const in module root, let otherwise would be appropriate. Although in some cases we have require statements in a function body, so used const there as well. Hope that makes sense...

There will be some test failures, as this is relying on ember-cli/ember-cli-blueprint-test-helpers#104 to be merged and released. So don't merge yet!

@rwjblue
Copy link
Member

rwjblue commented Mar 22, 2017

Changes look good. I agree with the const / let split here.

Not sure why the tests are failing, might need to dig into the travis output to see...

@simonihmig
Copy link
Contributor Author

@rwjblue The two failing tests are the ones I was mentioning above, requiring the changes in ember-cli/ember-cli-blueprint-test-helpers#104 to succeed. Once there is a new release of ember-cli-blueprint-test-helpers, I can add a commit to bump that dependency, which should fix the failing tests. (I tried that successfully on my local machine with yarn link!)

@Turbo87
Copy link
Member

Turbo87 commented Mar 23, 2017

@simonihmig I just published v0.17.1 of the blueprint-test-helpers

@Turbo87
Copy link
Member

Turbo87 commented Mar 24, 2017

@homu r+

@homu
Copy link
Contributor

homu commented Mar 24, 2017

📌 Commit 8422900 has been approved by Turbo87

@Turbo87 Turbo87 changed the title [ENHANCEMENT] Use const/let in all blueprints Use const/let in all blueprints Mar 24, 2017
homu added a commit that referenced this pull request Mar 24, 2017
Use const/let in all blueprints

This will remove all left over usage of `var` off the blueprints.

When to use `const` vs. `let` is a matter of opinions obviously. After checking with @Turbo87 on Slack, I was assuming the `ember-suave`-like rules of `const` in module root, `let` otherwise would be appropriate. Although in some cases we have `require` statements in a function body, so used `const` there as well. Hope that makes sense...

There will be some test failures, as this is relying on ember-cli/ember-cli-blueprint-test-helpers#104 to be merged and released. So don't merge yet!
@homu
Copy link
Contributor

homu commented Mar 24, 2017

⌛ Testing commit 8422900 with merge 6344a63...

@homu
Copy link
Contributor

homu commented Mar 24, 2017

💔 Test failed - status

@Turbo87
Copy link
Member

Turbo87 commented Mar 24, 2017

@homu retry

homu added a commit that referenced this pull request Mar 24, 2017
Use const/let in all blueprints

This will remove all left over usage of `var` off the blueprints.

When to use `const` vs. `let` is a matter of opinions obviously. After checking with @Turbo87 on Slack, I was assuming the `ember-suave`-like rules of `const` in module root, `let` otherwise would be appropriate. Although in some cases we have `require` statements in a function body, so used `const` there as well. Hope that makes sense...

There will be some test failures, as this is relying on ember-cli/ember-cli-blueprint-test-helpers#104 to be merged and released. So don't merge yet!
@homu
Copy link
Contributor

homu commented Mar 24, 2017

⌛ Testing commit 8422900 with merge 06891ff...

@homu
Copy link
Contributor

homu commented Mar 24, 2017

☀️ Test successful - status

@homu homu merged commit 8422900 into ember-cli:master Mar 24, 2017
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 this pull request may close these issues.

None yet

4 participants