Disabling warning about "require" function in JSHint

I'm writing some code for Node.js and I'm currently using JSHint to check over my code. However, when I use the require function to import modules, it says "'require' is not defined". How can I suppress the warning?

"use strict";
var express = require('express');   
var register = require('./routes/register');

jshint is not aware of node.js globals by default you need to inform it.

add this comment to the top:

/* jshint node: true */

You can configure JSHint by adding "require" to the .jshintrc file. For instance:

{
    "globals" : {
        "require": false
    }
}

Or you can define globals per specific file only by:

/* global require */

For more information about how to configure JSHint please read JSHint Documentation