How to resolve "module is not defined."

jshint

Solution

You can also do the following in your jshint.rc

 "jshint_options":
    {
        "globals": {
            "module": false
        }
     }

Problem

I have a module that I'm using elsewhere, but I keep getting "module is not defined." It works if I use the global directive but that implies that the module is defined elsewhere. Is there any way to fix this issue? Thank you In `module.js` ``` /* exported module */ var module = (function($){ ... return {method: method}; })($); $(module.method); ``` In `foo.js` ``` var foo = function() { function bar() { module.method(); } }; $(foo); ```

Original source