Is there any setting that allows ESlint not to report __dirname=>var-undef errors

  node.js, question

My Webpack inside has such a thing

output: {
 path: path.resolve(__dirname, '/scripts'),
 publicPath: '/scripts/FlightHotels',
 filename: 'bundle.js'
 },

butESlintAlways complaining about me__dirnameBelong to undefined variable … Is there any way to let him know my environment isnodeJS?
It’s herewarn

//.eslintrc.js
 module.exports = {
 "env": {
 "browser": true,
 "commonjs": true,
 "es6": true
 },
 ...
 "rules": {
 "no-undef": 1, //  http://eslint.org/docs/rules/no-undef
 bracket

Can you do such a thing

var path = require('path'),
 node = require('node');
 //Then quote like this
 path.resolve(node.__dirname, '/scripts'),
bracket
 "browser": true,
 "commonjs": true,
 "es6": true,
 "node": true
 bracket
 Add a node environment configuration here!