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 Beta] Linter changes for addon/-private (not -private/system) #4729

Merged
merged 1 commit into from
Jan 24, 2017

Conversation

pete-the-pete
Copy link
Contributor

@pete-the-pete pete-the-pete commented Dec 28, 2016

Minor clean up for linter issues.

@@ -401,7 +401,7 @@ export default Ember.Mixin.create({
}

// No path provided
var url = [];
const url = [];
Copy link
Member

Choose a reason for hiding this comment

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

Can we not use const for things that are not constants please

@@ -434,7 +434,7 @@ export default Ember.Mixin.create({
@return {String} path
**/
pathForType(modelName) {
var camelized = Ember.String.camelize(modelName);
const camelized = Ember.String.camelize(modelName);
Copy link
Member

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I am going back through these PRs per @bmac's suggestion:
"I believe Ember follows a convention of "liberally-let" per madhatted.com/2016/1/25/let-it-be and only allows const in module scope."

I'll update once the builds are working again.

@bmac bmac merged commit c7151ec into emberjs:master Jan 24, 2017
@pete-the-pete pete-the-pete deleted the linting-addon-private branch February 2, 2017 15:38
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

3 participants