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

Newly scaffolded extension fails jshint #75

Closed
paulirish opened this issue Sep 30, 2014 · 4 comments
Closed

Newly scaffolded extension fails jshint #75

paulirish opened this issue Sep 30, 2014 · 4 comments

Comments

@paulirish
Copy link
Member

brand new extension grunt debug fails because of jshint erroring out:

$ grunt debug
tRunning "debug" task

Running "jshint:all" (jshint) task

test/spec/test.js
  line 4   col 3  Expected 'use strict' to have an indentation at 5 instead at 3.
  line 6   col 3  Expected 'describe' to have an indentation at 5 instead at 3.
  line 7   col 5  Expected 'describe' to have an indentation at 9 instead at 5.
  line 8   col 7  Expected 'it' to have an indentation at 13 instead at 7.
  line 10  col 7  Expected '}' to have an indentation at 13 instead at 7.
  line 11  col 5  Expected '}' to have an indentation at 9 instead at 5.
  line 12  col 3  Expected '}' to have an indentation at 5 instead at 3.

✖ 7 problems

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

Aborted due to warnings.
@sindresorhus
Copy link
Member

@ragingwind

@ragingwind
Copy link
Collaborator

oops. generator-mocha has changed their indent to space 2 in newer version (before space 4) yeoman/generator-mocha@97e0f20

@sindresorhus our community generators has a own intent. 2 (webapp, angularjs) or 4 (bacbone, chrome-ext) Should I change the intent of all of the js files, or add extra option to jshint for spec/test.js file

@sindresorhus
Copy link
Member

change to 2.

@ragingwind
Copy link
Collaborator

yes sir

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

3 participants