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
Post a Comment