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

JSHint + "use strict"; results in spurious "'exports' is not defined." warnings #1069

Closed
mcandre opened this issue May 8, 2013 · 3 comments

Comments

@mcandre
Copy link

mcandre commented May 8, 2013

I'd like to apply both JSHint and "use strict"; to my Node.js code, but when I do, JSHint complains:

$ jshint .
binfix.js: line 14, col 1, 'exports' is not defined.
binfix.js: line 24, col 1, 'exports' is not defined.
binfix.js: line 48, col 1, 'exports' is not defined.
@valueof
Copy link
Member

valueof commented May 8, 2013

use /*jshint node:true */ option.

@valueof valueof closed this as completed May 8, 2013
@mcandre
Copy link
Author

mcandre commented May 9, 2013

@antonkovalyov Thanks again! All the warnings went away when I added "node": true to my .jshintrc!

@danilodeveloper
Copy link

I added this:

{
"node" : true
}

in .jshintrc file and it worked well for me. Thank you @mcandre and @valueof !

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