From b4fea2a3d62da5e2e3f90d7f2109f02f927f7174 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 21 Apr 2017 22:55:51 +0300 Subject: doc: add eslint-plugin-markdown * install eslint-plugin-markdown * add doc/.eslintrc.yaml * add `` or `` for the rest of problematic code * .js files in doc folder added to .eslintignore * update Makefile and vcbuild.bat PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz Reviewed-By: James M Snell Reviewed-By: Timothy Gu Reviewed-By: Gibson Fahnestock Reviewed-By: Yuta Hiroto --- doc/api/cluster.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'doc/api/cluster.md') diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 069f9f2003..858c98dab6 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -523,14 +523,11 @@ When any of the workers die the cluster module will emit the `'exit'` event. This can be used to restart the worker by calling `.fork()` again. ```js -cluster.on( - 'exit', - (worker, code, signal) => { - console.log('worker %d died (%s). restarting...', - worker.process.pid, signal || code); - cluster.fork(); - } -); +cluster.on('exit', (worker, code, signal) => { + console.log('worker %d died (%s). restarting...', + worker.process.pid, signal || code); + cluster.fork(); +}); ``` See [child_process event: 'exit'][]. -- cgit v1.2.3