diff options
author | Rich Trott <rtrott@gmail.com> | 2019-03-01 22:47:47 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-03-04 11:06:23 -0800 |
commit | 5fa642a91750db5395d07fb2ab63e93a4bd7baad (patch) | |
tree | 5b420b0551058752ae4cbe2aeaab9dffc465545a /tools/node-lint-md-cli-rollup/src | |
parent | c7e628f8b3b6f2b7dcb2f3d70708454ee66cbf26 (diff) | |
download | android-node-v8-5fa642a91750db5395d07fb2ab63e93a4bd7baad.tar.gz android-node-v8-5fa642a91750db5395d07fb2ab63e93a4bd7baad.tar.bz2 android-node-v8-5fa642a91750db5395d07fb2ab63e93a4bd7baad.zip |
tools: refactor tools JS code
* standardize on arrow functions for callbacks
* standaradize on trailing commas for multiline arrays
PR-URL: https://github.com/nodejs/node/pull/26394
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'tools/node-lint-md-cli-rollup/src')
-rw-r--r-- | tools/node-lint-md-cli-rollup/src/cli-entry.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node-lint-md-cli-rollup/src/cli-entry.js b/tools/node-lint-md-cli-rollup/src/cli-entry.js index 0d204b15a9..616ac35774 100644 --- a/tools/node-lint-md-cli-rollup/src/cli-entry.js +++ b/tools/node-lint-md-cli-rollup/src/cli-entry.js @@ -14,7 +14,7 @@ const args = { description: cli.description, version: [ proc.name + ': ' + proc.version, - cli.name + ': ' + cli.version + cli.name + ': ' + cli.version, ].join(', '), ignoreName: '.' + proc.name + 'ignore', extensions: extensions @@ -23,7 +23,7 @@ const config = options(process.argv.slice(2), args); config.detectConfig = false; config.plugins = plugins; -engine(config, function done(err, code) { +engine(config, (err, code) => { if (err) console.error(err); process.exit(code); }); |