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

generated extensions do not pass JsHint #6

Open
distracteddev opened this issue Jun 2, 2013 · 8 comments
Open

generated extensions do not pass JsHint #6

distracteddev opened this issue Jun 2, 2013 · 8 comments

Comments

@distracteddev
Copy link
Contributor

Planning on fixing this soon, just placing this here to remind myself.

@dotcypress
Copy link
Member

Ok. Thanks for your help.

@robertd
Copy link
Member

robertd commented Aug 2, 2013

@distracteddev Are you still experiencing this issue?

@distracteddev
Copy link
Contributor Author

I haven't generated anything in a while but I imagine its still there unless the templates have been updated.

@robertd
Copy link
Member

robertd commented Aug 3, 2013

JSHint Report

/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, unused:true, curly:true, browser:true, devel:true, node:true, indent:4, maxerr:50 */
Errors:

Line 3: return {

Missing "use strict" statement.

Line 1: define(['underscore'], function (_) {

'define' is not defined.

Line 1: define(['underscore'], function (_) {

'_' is defined but never used.

Line 5: initialize: function (application) {

'application' is defined but never used.

Other than implementing use strict; ... what else can we really add to the template? Am I missing something?

@fudanchii
Copy link
Contributor

@robertd Did you jshint them manually? As far as I'm concerned, the Gruntfile should be fixed first, it doesn't actually linting those files under extensions and aura_components folder (line 95-96).

The define error shouldn't be there since it's flagged at .jshintrc. All that left to get fixed is adding strict mode and either make use underscorejs to do something, or remove them from the corresponding files.

@robertd
Copy link
Member

robertd commented Aug 3, 2013

Yeah... I jshint them manually. I would like someone to take a stab at Gruntfile in what direction it should go as mentioned in #14.

As far for the other templates... yeah... whip up a PR and I'll merge them in.

@fudanchii
Copy link
Contributor

Ok, tried to put some work on that (#18), some review would be nice.

@robertd
Copy link
Member

robertd commented Aug 5, 2013

@fudanchii 👍

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

No branches or pull requests

4 participants