How do I add a new library to JS Hint Environments?

298 views
Skip to first unread message

hemanth kumar

unread,
Sep 2, 2013, 1:06:21 PM9/2/13
to jsh...@googlegroups.com
I want to  add a new JS Library to the JS hint Environment so that i can have global variables exposed by that library .
How to add this library to JS hint Environment?

Peter deHaan

unread,
Sep 3, 2013, 12:15:00 PM9/3/13
to jsh...@googlegroups.com
Not sure which configuration you're using for JSHint, but you can check out the "globals" config: http://jshint.com/docs/config/#globals

For example, if you were using ExtJS, you could add this to the top of your JavaScript file so it knows that the `Ext` variable was defined elsewhere (and should be considered read-only): 

/*global Ext:false */

-peter


On Mon, Sep 2, 2013 at 10:06 AM, hemanth kumar <punith....@gmail.com> wrote:
I want to  add a new JS Library to the JS hint Environment so that i can have global variables exposed by that library .
How to add this library to JS hint Environment?

--
You received this message because you are subscribed to the Google Groups "JSHint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jshint+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages