Unresolved variable or type module

In my IDE (WebStorm) I’m getting warnings ‘Unresolved variable or type module’ for module, e.g.

module.exports = function(environment) {

Any idea where this is defined so I can configure my IDE to add it to the lookup library list?