From 7e004f3c4b5e3ebf1f68343c4b79ea1b903e13f8 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Tue, 9 Aug 2022 19:06:38 -0700 Subject: [PATCH] chore: update deps No change to logic. This only updates dependencies and adjusts code style to conform to the new `eslint`. The update was performed with: ``` nvm use v16 --delete-prefix npm install -g npm-check-updates "$(npm config get prefix)/bin/ncu" -u --enginesNode ``` --- package.json | 10 +++++----- src/cli.js | 2 +- src/help.js | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 7813051..3b88c8e 100644 --- a/package.json +++ b/package.json @@ -54,17 +54,17 @@ "babel-cli": "^6.6.5", "babel-preset-env": "^1.7.0", "babel-register": "^6.7.2", - "concurrently": "^2.1.0", + "concurrently": "^5.3.0", "eslint": "^5.16.0", - "eslint-config-airbnb-base": "^13.1.0", - "eslint-plugin-import": "^2.17.3", + "eslint-config-airbnb-base": "^14.2.1", + "eslint-plugin-import": "^2.26.0", "js-yaml": "^3.12.0", - "mocha": "^6.1.4", + "mocha": "^6.2.3", "nyc": "^14.1.1", "rimraf": "^2.5.2", "shelljs-changelog": "^0.2.6", "shelljs-plugin-open": "^0.2.1", - "shelljs-release": "^0.5.1", + "shelljs-release": "^0.5.2", "should": "^13.2.3", "watch": "^1.0.2" }, diff --git a/src/cli.js b/src/cli.js index 0e5bf2b..00e86c9 100755 --- a/src/cli.js +++ b/src/cli.js @@ -20,7 +20,7 @@ const run = (input) => { if (shouldReadStdin(parsedArgs._)) { // Read all stdin first, and then pass that onto ShellJS const chunks = []; - process.stdin.on('data', data => chunks.push(data)); + process.stdin.on('data', (data) => chunks.push(data)); process.stdin.on('end', () => run(chunks.join(''))); } else { // There's no stdin, so we can immediately invoke the ShellJS function diff --git a/src/help.js b/src/help.js index 57c5324..c2d3f12 100644 --- a/src/help.js +++ b/src/help.js @@ -5,17 +5,17 @@ import { CMD_BLOCKLIST, OPTION_BLOCKLIST } from './config'; const locallyDefinedOptions = ['version']; const shxOptions = Object.keys(shell.config) - .filter(key => typeof shell.config[key] !== 'function') - .filter(key => OPTION_BLOCKLIST.indexOf(key) === -1) + .filter((key) => typeof shell.config[key] !== 'function') + .filter((key) => OPTION_BLOCKLIST.indexOf(key) === -1) .concat(locallyDefinedOptions) - .map(key => ` * --${key}`); + .map((key) => ` * --${key}`); export default () => { // Note: compute this at runtime so that we have all plugins loaded. const commandList = Object.keys(shell) - .filter(cmd => typeof shell[cmd] === 'function') - .filter(cmd => CMD_BLOCKLIST.indexOf(cmd) === -1) - .map(cmd => ` * ${cmd}`); + .filter((cmd) => typeof shell[cmd] === 'function') + .filter((cmd) => CMD_BLOCKLIST.indexOf(cmd) === -1) + .map((cmd) => ` * ${cmd}`); return ` shx: A wrapper for shelljs UNIX commands.