generator-mean icon indicating copy to clipboard operation
generator-mean copied to clipboard

yo meanstack instead of yo;jshint erros after grunt

Open naman opened this issue 10 years ago • 5 comments

After running grunt for the first time, a huge set of warnings are shown.

Linting app/scripts/app.js ...ERROR [L9:C17] W015: Expected 'templateUrl' to have an indentation at 11 instead at 17. templateUrl: 'views/main.html', Linting app/scripts/app.js ...ERROR [L10:C17] W015: Expected 'controller' to have an indentation at 11 instead at 17. controller: 'MainCtrl' Linting app/scripts/app.js ...ERROR [L11:C13] W015: Expected '}' to have an indentation at 9 instead at 13. }) Linting app/scripts/app.js ...ERROR [L13:C17] W015: Expected 'redirectTo' to have an indentation at 11 instead at 17. redirectTo: '/' Linting app/scripts/app.js ...ERROR [L14:C13] W015: Expected '}' to have an indentation at 9 instead at 13. }); Linting app/scripts/app.js ...ERROR [L15:C5] W015: Expected '}' to have an indentation at 7 instead at 5. }); Linting app/scripts/app.js ...ERROR [L17:C1] W015: Expected '}' to have an indentation at 3 instead at 1. }.call(this)); Linting app/scripts/app.js ...ERROR [L17:C8] W040: Possible strict violation. }.call(this));

Warning: Task "jshint:all" failed. Use --force to continue.

Aborted due to warnings. [~/Desktop/yeoprac] $ grunt Running "jshint:all" (jshint) task Linting app/scripts/app.js ...ERROR [L9:C17] W015: Expected 'templateUrl' to have an indentation at 11 instead at 17. templateUrl: 'views/main.html', Linting app/scripts/app.js ...ERROR [L10:C17] W015: Expected 'controller' to have an indentation at 11 instead at 17. controller: 'MainCtrl' Linting app/scripts/app.js ...ERROR [L11:C13] W015: Expected '}' to have an indentation at 9 instead at 13. }) Linting app/scripts/app.js ...ERROR [L13:C17] W015: Expected 'redirectTo' to have an indentation at 11 instead at 17. redirectTo: '/' Linting app/scripts/app.js ...ERROR [L14:C13] W015: Expected '}' to have an indentation at 9 instead at 13. }); Linting app/scripts/app.js ...ERROR [L15:C5] W015: Expected '}' to have an indentation at 7 instead at 5. }); Linting app/scripts/app.js ...ERROR [L17:C1] W015: Expected '}' to have an indentation at 3 instead at 1. }.call(this)); Linting app/scripts/app.js ...ERROR [L17:C8] W040: Possible strict violation. }.call(this));

Warning: Task "jshint:all" failed. Use --force to continue.

Aborted due to warnings.

naman avatar Jun 12 '14 12:06 naman

Hi, sorry about not getting back to you sooner!

I'll take a look into this - PRs are welcomed :)

jrcryer avatar Jul 13 '14 14:07 jrcryer

Hi,

I'm facing same issue. Any update on the fix?

mhaseebkhan avatar Jul 23 '14 06:07 mhaseebkhan

Nothing yet.

naman avatar Jul 24 '14 04:07 naman

Sorry guys - been really busy of late - will try to get something sorted. PRs are welcome!

jrcryer avatar Jul 24 '14 09:07 jrcryer

Can you confirm the versions you are running + platform?

→ node --version && npm --version 
v0.10.32
2.1.4

And I get all files linted as expected. No errors.

jrcryer avatar Nov 01 '14 14:11 jrcryer