Skip to content

Commit 2d93fe9

Browse files
committed
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 ```
1 parent bcb9e37 commit 2d93fe9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@
5454
"babel-cli": "^6.6.5",
5555
"babel-preset-env": "^1.7.0",
5656
"babel-register": "^6.7.2",
57-
"concurrently": "^2.1.0",
57+
"concurrently": "^5.3.0",
5858
"eslint": "^5.16.0",
59-
"eslint-config-airbnb-base": "^13.1.0",
60-
"eslint-plugin-import": "^2.17.3",
59+
"eslint-config-airbnb-base": "^14.2.1",
60+
"eslint-plugin-import": "^2.26.0",
6161
"js-yaml": "^3.12.0",
62-
"mocha": "^6.1.4",
62+
"mocha": "^6.2.3",
6363
"nyc": "^14.1.1",
6464
"rimraf": "^2.5.2",
6565
"shelljs-changelog": "^0.2.6",
6666
"shelljs-plugin-open": "^0.2.1",
67-
"shelljs-release": "^0.5.1",
67+
"shelljs-release": "^0.5.2",
6868
"should": "^13.2.3",
6969
"watch": "^1.0.2"
7070
},

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const run = (input) => {
2020
if (shouldReadStdin(parsedArgs._)) {
2121
// Read all stdin first, and then pass that onto ShellJS
2222
const chunks = [];
23-
process.stdin.on('data', data => chunks.push(data));
23+
process.stdin.on('data', (data) => chunks.push(data));
2424
process.stdin.on('end', () => run(chunks.join('')));
2525
} else {
2626
// There's no stdin, so we can immediately invoke the ShellJS function

src/help.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import { CMD_BLOCKLIST, OPTION_BLOCKLIST } from './config';
55
const locallyDefinedOptions = ['version'];
66

77
const shxOptions = Object.keys(shell.config)
8-
.filter(key => typeof shell.config[key] !== 'function')
9-
.filter(key => OPTION_BLOCKLIST.indexOf(key) === -1)
8+
.filter((key) => typeof shell.config[key] !== 'function')
9+
.filter((key) => OPTION_BLOCKLIST.indexOf(key) === -1)
1010
.concat(locallyDefinedOptions)
11-
.map(key => ` * --${key}`);
11+
.map((key) => ` * --${key}`);
1212

1313
export default () => {
1414
// Note: compute this at runtime so that we have all plugins loaded.
1515
const commandList = Object.keys(shell)
16-
.filter(cmd => typeof shell[cmd] === 'function')
17-
.filter(cmd => CMD_BLOCKLIST.indexOf(cmd) === -1)
18-
.map(cmd => ` * ${cmd}`);
16+
.filter((cmd) => typeof shell[cmd] === 'function')
17+
.filter((cmd) => CMD_BLOCKLIST.indexOf(cmd) === -1)
18+
.map((cmd) => ` * ${cmd}`);
1919

2020
return `
2121
shx: A wrapper for shelljs UNIX commands.

0 commit comments

Comments
 (0)