victorporof / Sublime-JSHint

JSHint Gutter for Sublime Text 2 and 3 via node.js
https://github.com/victorporof/Sublime-JSHint
682 stars 71 forks source link

How to solve "require is not defined" and "console is not defined" ? #131

Closed JimishF closed 8 years ago

JimishF commented 8 years ago

image

JimishF commented 8 years ago

I found a solution for it like write /* jshint node: true */ but How to do this globally ?

victorporof commented 8 years ago

readme https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options

JimishF commented 8 years ago

Thank you! Solved it :)

basil2style commented 7 years ago

Thank you very much

yangyili commented 6 years ago

add config {"node": true} in .jshint file

thaodhbk0406 commented 6 years ago

Thank you so much!

elirehema commented 4 years ago

@JimishF add this in your .jshintrc image

educationaldesk commented 3 years ago

Thank you for giving the solution.