Skip to content

Commit 2c81236

Browse files
committedJul 4, 2023
Lint fix and a few hand fixes
1 parent 62a7c83 commit 2c81236

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3087
-3134
lines changed
 

‎bin/common/bootstrap.js

+37-37
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,49 @@
33
* @copyright 2016 Toru Nagashima. All rights reserved.
44
* See LICENSE file in root directory for full license.
55
*/
6-
"use strict"
6+
'use strict'
77

8-
//------------------------------------------------------------------------------
8+
// ------------------------------------------------------------------------------
99
// Public Interface
10-
//------------------------------------------------------------------------------
11-
/*eslint-disable no-process-exit */
10+
// ------------------------------------------------------------------------------
11+
/* eslint-disable no-process-exit */
1212

13-
module.exports = function bootstrap(name) {
14-
const argv = process.argv.slice(2)
13+
module.exports = function bootstrap (name) {
14+
const argv = process.argv.slice(2)
1515

16-
switch (argv[0]) {
17-
case undefined:
18-
case "-h":
19-
case "--help":
20-
return require(`../${name}/help`)(process.stdout)
16+
switch (argv[0]) {
17+
case undefined:
18+
case '-h':
19+
case '--help':
20+
return require(`../${name}/help`)(process.stdout)
2121

22-
case "-v":
23-
case "--version":
24-
return require("./version")(process.stdout)
22+
case '-v':
23+
case '--version':
24+
return require('./version')(process.stdout)
2525

26-
default:
27-
// https://github.com/mysticatea/npm-run-all/issues/105
28-
// Avoid MaxListenersExceededWarnings.
29-
process.stdout.setMaxListeners(0)
30-
process.stderr.setMaxListeners(0)
31-
process.stdin.setMaxListeners(0)
26+
default:
27+
// https://github.com/mysticatea/npm-run-all/issues/105
28+
// Avoid MaxListenersExceededWarnings.
29+
process.stdout.setMaxListeners(0)
30+
process.stderr.setMaxListeners(0)
31+
process.stdin.setMaxListeners(0)
3232

33-
// Main
34-
return require(`../${name}/main`)(
35-
argv,
36-
process.stdout,
37-
process.stderr
38-
).then(
39-
() => {
40-
// I'm not sure why, but maybe the process never exits
41-
// on Git Bash (MINGW64)
42-
process.exit(0)
43-
},
44-
() => {
45-
process.exit(1)
46-
}
47-
)
48-
}
33+
// Main
34+
return require(`../${name}/main`)(
35+
argv,
36+
process.stdout,
37+
process.stderr
38+
).then(
39+
() => {
40+
// I'm not sure why, but maybe the process never exits
41+
// on Git Bash (MINGW64)
42+
process.exit(0)
43+
},
44+
() => {
45+
process.exit(1)
46+
}
47+
)
48+
}
4949
}
5050

51-
/*eslint-enable */
51+
/* eslint-enable */

0 commit comments

Comments
 (0)
Please sign in to comment.