node.js - Disabling warning about "require" function in JSHint -


i'm writing code node.js , i'm using jshint check on code. however, when use require function import modules, says "'require' not defined". how can suppress warning?

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

jshint not aware of node.js globals default need inform it.

add comment top:

/* jshint node: true */


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -