diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 4537a3a2b47d4b..7154396f7e2952 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -273,6 +273,7 @@ overrides: - ./internal/assert.js - ./internal/child_process/*.js - ./internal/cli_table.js + - ./internal/cluster/*.js - ./internal/debugger/inspect.js - ./internal/events/*.js - ./internal/fixed_queue.js diff --git a/lib/internal/cluster/child.js b/lib/internal/cluster/child.js index 2837c15fb8a479..1bddd3ca0ac103 100644 --- a/lib/internal/cluster/child.js +++ b/lib/internal/cluster/child.js @@ -36,7 +36,7 @@ cluster._setupWorker = function() { const worker = new Worker({ id: +process.env.NODE_UNIQUE_ID | 0, process: process, - state: 'online' + state: 'online', }); cluster.worker = worker; @@ -92,7 +92,7 @@ cluster._getServer = function(obj, options, cb) { act: 'queryServer', index, data: null, - ...options + ...options, }; message.address = address; diff --git a/lib/internal/cluster/primary.js b/lib/internal/cluster/primary.js index cc389949079b4e..945f440cd19797 100644 --- a/lib/internal/cluster/primary.js +++ b/lib/internal/cluster/primary.js @@ -12,7 +12,7 @@ const { const { codes: { ERR_SOCKET_BAD_PORT, - } + }, } = require('internal/errors'); const assert = require('internal/assert'); @@ -66,7 +66,7 @@ cluster.setupPrimary = function(options) { execArgv: process.execArgv, silent: false, ...cluster.settings, - ...options + ...options, }; // Tell V8 to write profile data for each process to a separate file. @@ -135,7 +135,7 @@ function createWorkerProcess(id, env) { execArgv: execArgv, stdio: cluster.settings.stdio, gid: cluster.settings.gid, - uid: cluster.settings.uid + uid: cluster.settings.uid, }); } @@ -164,7 +164,7 @@ cluster.fork = function(env) { const workerProcess = createWorkerProcess(id, env); const worker = new Worker({ id: id, - process: workerProcess + process: workerProcess, }); worker.on('message', function(message, handle) { @@ -316,7 +316,7 @@ function queryServer(worker, message) { key, ack: message.seq, data, - ...reply + ...reply, }, handle); }); } @@ -326,7 +326,7 @@ function listening(worker, message) { addressType: message.addressType, address: message.address, port: message.port, - fd: message.fd + fd: message.fd, }; worker.state = 'listening'; diff --git a/lib/internal/cluster/utils.js b/lib/internal/cluster/utils.js index cd2cbba9e65064..585185fda79b3e 100644 --- a/lib/internal/cluster/utils.js +++ b/lib/internal/cluster/utils.js @@ -7,7 +7,7 @@ const { module.exports = { sendHelper, - internal + internal, }; const callbacks = new SafeMap();